List of usage examples for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerEndpointsConfigurer authorizationCodeServices
AuthorizationCodeServices authorizationCodeServices
To view the source code for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerEndpointsConfigurer authorizationCodeServices.
Click Source Link
From source file:org.moserp.infrastructure.authentication.AuthorizationServerConfig.java
@Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints.authorizationCodeServices(authorizationCodeServices()) .authenticationManager(authenticationManager).tokenStore(tokenStore()).approvalStoreDisabled(); }
From source file:org.appverse.web.framework.backend.security.oauth2.authserver.configuration.inmemory.AuthorizationServerInMemoryStoreConfigurerAdapter.java
@Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints.pathMapping("/oauth/token", oauth2TokenEndpointPath); endpoints.pathMapping("/oauth/authorize", oauth2AuthorizeEndpointPath); endpoints.authorizationCodeServices(authorizationCodeServices()).authenticationManager(auth) .tokenStore(tokenStore()).tokenEnhancer(principalCredentialsTokenEnhancer()) .approvalStoreDisabled();// w ww. ja va 2 s . c o m }
From source file:org.appverse.web.framework.backend.security.oauth2.authserver.configuration.jdbcstore.AuthorizationServerWithJDBCStoreConfigurerAdapter.java
@Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { /* TODO: Customization of mappings is causing problems. Disabled by now. endpoints.pathMapping("/oauth/token", oauth2TokenEndpointPath); endpoints.pathMapping("/oauth/authorize", oauth2AuthorizeEndpointPath); */// w ww . ja va 2 s . c o m endpoints.authorizationCodeServices(authorizationCodeServices()).authenticationManager(auth) .tokenStore(tokenStore()).tokenEnhancer(principalCredentialsTokenEnhancer()) .approvalStoreDisabled(); }