added client credential protection to revocation endpoint
parent
e38b2b0ba5
commit
2a206654b6
|
@ -92,6 +92,10 @@
|
||||||
<security:custom-filter ref="clientCredentialsIntrospectionEndpointFilter" before="BASIC_AUTH_FILTER" />
|
<security:custom-filter ref="clientCredentialsIntrospectionEndpointFilter" before="BASIC_AUTH_FILTER" />
|
||||||
</security:http>
|
</security:http>
|
||||||
|
|
||||||
|
<security:http pattern="/revoke**" entry-point-ref="oauthAuthenticationEntryPoint">
|
||||||
|
<security:custom-filter ref="clientCredentialsRevocationEndpointFilter" before="BASIC_AUTH_FILTER" />
|
||||||
|
</security:http>
|
||||||
|
|
||||||
<bean id="oauthAuthenticationEntryPoint" class="org.springframework.security.oauth2.provider.error.OAuth2AuthenticationEntryPoint">
|
<bean id="oauthAuthenticationEntryPoint" class="org.springframework.security.oauth2.provider.error.OAuth2AuthenticationEntryPoint">
|
||||||
<property name="realmName" value="openidconnect" />
|
<property name="realmName" value="openidconnect" />
|
||||||
</bean>
|
</bean>
|
||||||
|
@ -125,6 +129,11 @@
|
||||||
<property name="filterProcessesUrl" value="/introspect"/>
|
<property name="filterProcessesUrl" value="/introspect"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<bean id="clientCredentialsRevocationEndpointFilter" class="org.springframework.security.oauth2.provider.client.ClientCredentialsTokenEndpointFilter">
|
||||||
|
<property name="authenticationManager" ref="clientAuthenticationManager" />
|
||||||
|
<property name="filterProcessesUrl" value="/revoke"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
<authentication-manager id="clientAuthenticationManager" xmlns="http://www.springframework.org/schema/security">
|
<authentication-manager id="clientAuthenticationManager" xmlns="http://www.springframework.org/schema/security">
|
||||||
<authentication-provider user-service-ref="clientUserDetailsService" />
|
<authentication-provider user-service-ref="clientUserDetailsService" />
|
||||||
</authentication-manager>
|
</authentication-manager>
|
||||||
|
|
Loading…
Reference in New Issue