Search in sources :

Example 1 with CheckTokenEndpoint

use of org.springframework.security.oauth2.provider.endpoint.CheckTokenEndpoint in project spring-security-oauth by spring-projects.

the class AuthorizationServerEndpointsConfiguration method checkTokenEndpoint.

@Bean
public CheckTokenEndpoint checkTokenEndpoint() {
    CheckTokenEndpoint endpoint = new CheckTokenEndpoint(getEndpointsConfigurer().getResourceServerTokenServices());
    endpoint.setAccessTokenConverter(getEndpointsConfigurer().getAccessTokenConverter());
    endpoint.setExceptionTranslator(exceptionTranslator());
    return endpoint;
}
Also used : CheckTokenEndpoint(org.springframework.security.oauth2.provider.endpoint.CheckTokenEndpoint) AbstractFactoryBean(org.springframework.beans.factory.config.AbstractFactoryBean) FactoryBean(org.springframework.beans.factory.FactoryBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

FactoryBean (org.springframework.beans.factory.FactoryBean)1 AbstractFactoryBean (org.springframework.beans.factory.config.AbstractFactoryBean)1 Bean (org.springframework.context.annotation.Bean)1 CheckTokenEndpoint (org.springframework.security.oauth2.provider.endpoint.CheckTokenEndpoint)1