Example usage for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerSecurityConfigurer allowFormAuthenticationForClients

List of usage examples for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerSecurityConfigurer allowFormAuthenticationForClients

Introduction

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

Prototype

boolean allowFormAuthenticationForClients

To view the source code for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerSecurityConfigurer allowFormAuthenticationForClients.

Click Source Link

Usage

From source file:com.eretailservice.security.OAuth2Configuration.java

@Override
public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {
    oauthServer.allowFormAuthenticationForClients();
}

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

@Override
public void configure(AuthorizationServerSecurityConfigurer security) throws Exception {
    security.allowFormAuthenticationForClients();
}

From source file:de.pksoftware.springstrap.core.config.AuthServerConfigBase.java

/**
 * Configure the OAuth2 Authorization Server Security.
 *//*  w w  w. j a v a 2  s. c  o m*/
@Override
public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {
    //Only allow token access to authenticated accounts.
    oauthServer.checkTokenAccess("isAuthenticated()");

    //Allow form authentication for clients.
    oauthServer.allowFormAuthenticationForClients();
}