Example usage for org.springframework.security.oauth2.provider.authentication OAuth2AuthenticationProcessingFilter setStateless

List of usage examples for org.springframework.security.oauth2.provider.authentication OAuth2AuthenticationProcessingFilter setStateless

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.provider.authentication OAuth2AuthenticationProcessingFilter setStateless.

Prototype

public void setStateless(boolean stateless) 

Source Link

Document

Flag to say that this filter guards stateless resources (default true).

Usage

From source file:org.springframework.cloud.dataflow.server.config.security.OAuthSecurityConfiguration.java

private OAuth2AuthenticationProcessingFilter oAuth2AuthenticationProcessingFilter() {
    final OAuth2AuthenticationProcessingFilter oAuth2AuthenticationProcessingFilter = new OAuth2AuthenticationProcessingFilter();
    oAuth2AuthenticationProcessingFilter.setAuthenticationManager(oauthAuthenticationManager());
    oAuth2AuthenticationProcessingFilter.setStateless(false);
    return oAuth2AuthenticationProcessingFilter;
}