Seems to be fixed! Added the "security:" prefix to the first http block in application-context. The compiler should have been catching that there was no matching for http w/o it, but it was just letting it through.
parent
f0f339d45f
commit
67edc1c191
|
@ -23,8 +23,7 @@
|
||||||
|
|
||||||
<security:global-method-security pre-post-annotations="enabled" proxy-target-class="true" authentication-manager-ref="springSecurityAuthenticationManager"/>
|
<security:global-method-security pre-post-annotations="enabled" proxy-target-class="true" authentication-manager-ref="springSecurityAuthenticationManager"/>
|
||||||
|
|
||||||
<!-- 4/11 AANGANES trying:remove "create-session="stateless"" from below statement -->
|
<security:http pattern="/oauth/token" create-session="stateless" authentication-manager-ref="clientAuthenticationManager"
|
||||||
<http pattern="/oauth/token" authentication-manager-ref="clientAuthenticationManager"
|
|
||||||
xmlns="http://www.springframework.org/schema/security">
|
xmlns="http://www.springframework.org/schema/security">
|
||||||
<intercept-url pattern="/oauth/token" access="IS_AUTHENTICATED_FULLY" />
|
<intercept-url pattern="/oauth/token" access="IS_AUTHENTICATED_FULLY" />
|
||||||
<anonymous enabled="false" />
|
<anonymous enabled="false" />
|
||||||
|
@ -32,7 +31,7 @@
|
||||||
<!-- include this only if you need to authenticate clients via request parameters -->
|
<!-- include this only if you need to authenticate clients via request parameters -->
|
||||||
<custom-filter ref="clientCredentialsTokenEndpointFilter" before="BASIC_AUTH_FILTER" />
|
<custom-filter ref="clientCredentialsTokenEndpointFilter" before="BASIC_AUTH_FILTER" />
|
||||||
<access-denied-handler ref="oauthAccessDeniedHandler" />
|
<access-denied-handler ref="oauthAccessDeniedHandler" />
|
||||||
</http>
|
</security:http>
|
||||||
|
|
||||||
<security:http use-expressions="true" auto-config="true" pattern="/oauth/authorize" authentication-manager-ref="springSecurityAuthenticationManager">
|
<security:http use-expressions="true" auto-config="true" pattern="/oauth/authorize" authentication-manager-ref="springSecurityAuthenticationManager">
|
||||||
<security:intercept-url pattern="/oauth/authorize" access="hasRole('ROLE_USER')"/>
|
<security:intercept-url pattern="/oauth/authorize" access="hasRole('ROLE_USER')"/>
|
||||||
|
|
Loading…
Reference in New Issue