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

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

Introduction

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

Prototype

TokenStore tokenStore

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

Click Source Link

Usage

From source file:org.openmhealth.dsu.configuration.OAuth2AuthorizationServerConfiguration.java

@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {

    endpoints.tokenStore(tokenStore).authenticationManager(authenticationManager);
}

From source file:com.create.application.configuration.OAuthConfiguration.java

@Override
public void configure(final AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
    endpoints.tokenStore(tokenStore).tokenEnhancer(tokenEnhancer);
}

From source file:org.openbaton.nfvo.security.authentication.OAuth2AuthorizationServerConfig.java

@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
    endpoints.tokenStore(this.tokenStore).authenticationManager(this.authenticationManager)
            .userDetailsService(userDetailsManager);
}

From source file:com.melayer.camzia.config.MeConfigOAuth2Server.java

@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
    //super.configure(endpoints); 

    endpoints.tokenStore(tokenStore()).authenticationManager(authenticationManager)
            .accessTokenConverter(jwtAccessTokenConverter()).userDetailsService(userDetailsService);
}

From source file:com.companyname.PlatOauth2AuthServerConfig.java

@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
    logger.info("inside AuthorizationServerConfiguration.configure(...)");
    endpoints.tokenStore(tokenStore()).authenticationManager(authenticationManager);
}

From source file:org.appverse.web.framework.backend.security.oauth2.authserver.configuration.jwtstore.AuthorizationServerWithJWTStoreConfigurerAdapter.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);
    *///from   ww w  . jav a  2s  .  c o  m
    endpoints.tokenStore(tokenStore())
            // TODO: We can't use this or the JWT token is not generated... .tokenEnhancer(principalCredentialsTokenEnhancer())
            .tokenEnhancer(jwtTokenEnhancer()).authenticationManager(auth).approvalStoreDisabled();
}

From source file:org.springframework.boot.autoconfigure.security.oauth2.authserver.OAuth2AuthorizationServerConfiguration.java

@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
    if (this.tokenStore != null) {
        endpoints.tokenStore(this.tokenStore);
    }//from  www  .j a  v  a  2s.c  o m
    if (this.details.getAuthorizedGrantTypes().contains("password")) {
        endpoints.authenticationManager(this.authenticationManager);
    }
}