Example usage for org.springframework.security.oauth2.provider.error OAuth2AccessDeniedHandler OAuth2AccessDeniedHandler

List of usage examples for org.springframework.security.oauth2.provider.error OAuth2AccessDeniedHandler OAuth2AccessDeniedHandler

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.provider.error OAuth2AccessDeniedHandler OAuth2AccessDeniedHandler.

Prototype

OAuth2AccessDeniedHandler

Source Link

Usage

From source file:org.shaigor.rest.retro.client.config.ClientSecurityConfigurer.java

@Override
protected void configure(HttpSecurity http) throws Exception {
    http.anonymous().disable().authorizeRequests().anyRequest().fullyAuthenticated().and().logout()
            .logoutSuccessUrl("/index.jsp").logoutUrl("/logout.do").invalidateHttpSession(true).and()
            .exceptionHandling().accessDeniedHandler(new OAuth2AccessDeniedHandler());
}

From source file:org.meruvian.yama.webapi.config.oauth.OAuthServerConfig.java

@Bean
public AccessDeniedHandler oauth2AccessDeniedHandler() {
    return new OAuth2AccessDeniedHandler();
}