|
|
@ -74,31 +74,37 @@
|
|
|
|
<!-- include this only if you need to authenticate clients via request parameters -->
|
|
|
|
<!-- include this only if you need to authenticate clients via request parameters -->
|
|
|
|
<security:custom-filter ref="clientAssertiontokenEndpointFilter" after="PRE_AUTH_FILTER" /> <!-- this one has to go first -->
|
|
|
|
<security:custom-filter ref="clientAssertiontokenEndpointFilter" after="PRE_AUTH_FILTER" /> <!-- this one has to go first -->
|
|
|
|
<security:custom-filter ref="clientCredentialsTokenEndpointFilter" before="BASIC_AUTH_FILTER" />
|
|
|
|
<security:custom-filter ref="clientCredentialsTokenEndpointFilter" before="BASIC_AUTH_FILTER" />
|
|
|
|
|
|
|
|
<security:custom-filter ref="corsFilter" after="SECURITY_CONTEXT_FILTER" />
|
|
|
|
<security:access-denied-handler ref="oauthAccessDeniedHandler" />
|
|
|
|
<security:access-denied-handler ref="oauthAccessDeniedHandler" />
|
|
|
|
</security:http>
|
|
|
|
</security:http>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Allow open access to required endpoints -->
|
|
|
|
<!-- Allow open access to required endpoints -->
|
|
|
|
<security:http pattern="/jwk**" use-expressions="true" entry-point-ref="http403EntryPoint" create-session="stateless">
|
|
|
|
<security:http pattern="/jwk**" use-expressions="true" entry-point-ref="http403EntryPoint" create-session="stateless">
|
|
|
|
<security:intercept-url pattern="/jwk**" access="permitAll"/>
|
|
|
|
<security:intercept-url pattern="/jwk**" access="permitAll"/>
|
|
|
|
|
|
|
|
<security:custom-filter ref="corsFilter" after="SECURITY_CONTEXT_FILTER" />
|
|
|
|
</security:http>
|
|
|
|
</security:http>
|
|
|
|
<security:http pattern="/.well-known/**" use-expressions="true" entry-point-ref="http403EntryPoint" create-session="stateless">
|
|
|
|
<security:http pattern="/.well-known/**" use-expressions="true" entry-point-ref="http403EntryPoint" create-session="stateless">
|
|
|
|
<security:intercept-url pattern="/.well-known/**" access="permitAll"/>
|
|
|
|
<security:intercept-url pattern="/.well-known/**" access="permitAll"/>
|
|
|
|
|
|
|
|
<security:custom-filter ref="corsFilter" after="SECURITY_CONTEXT_FILTER" />
|
|
|
|
</security:http>
|
|
|
|
</security:http>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Allow open access to all static resources -->
|
|
|
|
<!-- Allow open access to all static resources -->
|
|
|
|
<security:http pattern="/resources/**" use-expressions="true" entry-point-ref="http403EntryPoint" create-session="stateless">
|
|
|
|
<security:http pattern="/resources/**" use-expressions="true" entry-point-ref="http403EntryPoint" create-session="stateless">
|
|
|
|
<security:intercept-url pattern="/resources/**" access="permitAll"/>
|
|
|
|
<security:intercept-url pattern="/resources/**" access="permitAll"/>
|
|
|
|
|
|
|
|
<security:custom-filter ref="corsFilter" after="SECURITY_CONTEXT_FILTER" />
|
|
|
|
</security:http>
|
|
|
|
</security:http>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- OAuth-protect API and other endpoints -->
|
|
|
|
<!-- OAuth-protect API and other endpoints -->
|
|
|
|
<security:http pattern="/register/**" use-expressions="true" entry-point-ref="oauthAuthenticationEntryPoint" create-session="stateless">
|
|
|
|
<security:http pattern="/register/**" use-expressions="true" entry-point-ref="oauthAuthenticationEntryPoint" create-session="stateless">
|
|
|
|
<security:custom-filter ref="resourceServerFilter" before="PRE_AUTH_FILTER" />
|
|
|
|
<security:custom-filter ref="resourceServerFilter" before="PRE_AUTH_FILTER" />
|
|
|
|
|
|
|
|
<security:custom-filter ref="corsFilter" after="SECURITY_CONTEXT_FILTER" />
|
|
|
|
<security:expression-handler ref="oauthWebExpressionHandler" />
|
|
|
|
<security:expression-handler ref="oauthWebExpressionHandler" />
|
|
|
|
<security:intercept-url pattern="/register/**" access="permitAll"/>
|
|
|
|
<security:intercept-url pattern="/register/**" access="permitAll"/>
|
|
|
|
</security:http>
|
|
|
|
</security:http>
|
|
|
|
|
|
|
|
|
|
|
|
<security:http pattern="/userinfo**" use-expressions="true" entry-point-ref="oauthAuthenticationEntryPoint" create-session="stateless">
|
|
|
|
<security:http pattern="/userinfo**" use-expressions="true" entry-point-ref="oauthAuthenticationEntryPoint" create-session="stateless">
|
|
|
|
<security:custom-filter ref="resourceServerFilter" before="PRE_AUTH_FILTER" />
|
|
|
|
<security:custom-filter ref="resourceServerFilter" before="PRE_AUTH_FILTER" />
|
|
|
|
|
|
|
|
<security:custom-filter ref="corsFilter" after="SECURITY_CONTEXT_FILTER" />
|
|
|
|
<security:expression-handler ref="oauthWebExpressionHandler" />
|
|
|
|
<security:expression-handler ref="oauthWebExpressionHandler" />
|
|
|
|
</security:http>
|
|
|
|
</security:http>
|
|
|
|
|
|
|
|
|
|
|
@ -114,6 +120,7 @@
|
|
|
|
authentication-manager-ref="clientAuthenticationManager">
|
|
|
|
authentication-manager-ref="clientAuthenticationManager">
|
|
|
|
<security:http-basic entry-point-ref="oauthAuthenticationEntryPoint" />
|
|
|
|
<security:http-basic entry-point-ref="oauthAuthenticationEntryPoint" />
|
|
|
|
<!-- <security:custom-filter ref="resourceServerFilter" before="PRE_AUTH_FILTER" /> -->
|
|
|
|
<!-- <security:custom-filter ref="resourceServerFilter" before="PRE_AUTH_FILTER" /> -->
|
|
|
|
|
|
|
|
<security:custom-filter ref="corsFilter" after="SECURITY_CONTEXT_FILTER" />
|
|
|
|
<security:custom-filter ref="clientCredentialsIntrospectionEndpointFilter" before="BASIC_AUTH_FILTER" />
|
|
|
|
<security:custom-filter ref="clientCredentialsIntrospectionEndpointFilter" before="BASIC_AUTH_FILTER" />
|
|
|
|
</security:http>
|
|
|
|
</security:http>
|
|
|
|
|
|
|
|
|
|
|
@ -124,6 +131,7 @@
|
|
|
|
authentication-manager-ref="clientAuthenticationManager">
|
|
|
|
authentication-manager-ref="clientAuthenticationManager">
|
|
|
|
<security:http-basic entry-point-ref="oauthAuthenticationEntryPoint" />
|
|
|
|
<security:http-basic entry-point-ref="oauthAuthenticationEntryPoint" />
|
|
|
|
<!-- <security:custom-filter ref="resourceServerFilter" before="PRE_AUTH_FILTER" /> -->
|
|
|
|
<!-- <security:custom-filter ref="resourceServerFilter" before="PRE_AUTH_FILTER" /> -->
|
|
|
|
|
|
|
|
<security:custom-filter ref="corsFilter" after="SECURITY_CONTEXT_FILTER" />
|
|
|
|
<security:custom-filter ref="clientCredentialsRevocationEndpointFilter" before="BASIC_AUTH_FILTER" />
|
|
|
|
<security:custom-filter ref="clientCredentialsRevocationEndpointFilter" before="BASIC_AUTH_FILTER" />
|
|
|
|
</security:http>
|
|
|
|
</security:http>
|
|
|
|
|
|
|
|
|
|
|
|