List of usage examples for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerEndpointsConfigurer pathMapping
public AuthorizationServerEndpointsConfigurer pathMapping(String defaultPath, String customPath)
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();//from w w w .j a v a 2 s . c o m }