@Configuration @EnableAuthorizationServer protected static class Application.OAuth2Config extends AuthorizationServerConfigurerAdapter
Modifier | Constructor and Description |
---|---|
protected |
Application.OAuth2Config() |
Modifier and Type | Method and Description |
---|---|
void |
configure(AuthorizationServerEndpointsConfigurer endpoints)
Configure the non-security features of the Authorization Server endpoints, like token store, token
customizations, user approvals and grant types.
|
void |
configure(ClientDetailsServiceConfigurer clients)
Configure the
ClientDetailsService , e.g. declaring individual clients and their properties. |
configure
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception
AuthorizationServerConfigurer
AuthenticationManager
.configure
in interface AuthorizationServerConfigurer
configure
in class AuthorizationServerConfigurerAdapter
endpoints
- the endpoints configurerException
public void configure(ClientDetailsServiceConfigurer clients) throws Exception
AuthorizationServerConfigurer
ClientDetailsService
, e.g. declaring individual clients and their properties. Note that
password grant is not enabled (even if some clients are allowed it) unless an AuthenticationManager
is
supplied to the AuthorizationServerConfigurer.configure(AuthorizationServerEndpointsConfigurer)
. At least one client, or a fully
formed custom ClientDetailsService
must be declared or the server will not start.configure
in interface AuthorizationServerConfigurer
configure
in class AuthorizationServerConfigurerAdapter
clients
- the client details configurerException
Copyright © 2014. All rights reserved.