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

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

Introduction

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

Prototype

UserApprovalHandler userApprovalHandler

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

Click Source Link

Usage

From source file:org.osiam.configuration.OAuth2AuthorizationServerConfig.java

@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
    endpoints.userApprovalHandler(userApprovalHandler).requestFactory(oAuth2RequestFactory())
            .authorizationCodeServices(authorizationCodeServices()).tokenServices(tokenServices())
            .tokenEnhancer(osiamTokenEnhancer()).tokenGranter(tokenGranter());
}