Example usage for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerEndpointsConfigurer pathMapping

List of usage examples for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerEndpointsConfigurer pathMapping

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerEndpointsConfigurer pathMapping.

Prototype

public AuthorizationServerEndpointsConfigurer pathMapping(String defaultPath, String customPath) 

Source Link

Usage

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
}