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

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

Introduction

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

Prototype

AuthorizationCodeServices authorizationCodeServices

To view the source code for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerEndpointsConfigurer authorizationCodeServices.

Click Source Link

Usage

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();
}