public class ExternalOAuthTokenGranter extends org.springframework.security.oauth2.provider.token.AbstractTokenGranter implements OAuthTokenIssuer
OAuthTokenIssuer.OAuth2AccessTokenRequest, OAuthTokenIssuer.OAuth2AccessTokenResult
Modifier and Type | Method and Description |
---|---|
OAuthTokenIssuer.OAuth2AccessTokenResult |
issueToken(OAuthTokenIssuer.OAuth2AccessTokenRequest tokenRequest)
Issue token for principal.
|
OAuthTokenIssuer.OAuth2AccessTokenResult |
issueToken(java.lang.String login,
java.util.Locale locale,
java.util.Map<java.lang.String,java.lang.Object> loginParams)
Issue token for principal.
|
public OAuthTokenIssuer.OAuth2AccessTokenResult issueToken(OAuthTokenIssuer.OAuth2AccessTokenRequest tokenRequest)
OAuthTokenIssuer
issueToken
in interface OAuthTokenIssuer
tokenRequest
- login and token parameterspublic OAuthTokenIssuer.OAuth2AccessTokenResult issueToken(java.lang.String login, java.util.Locale locale, java.util.Map<java.lang.String,java.lang.Object> loginParams)
OAuthTokenIssuer
issueToken
in interface OAuthTokenIssuer
login
- an existing user loginlocale
- localeloginParams
- params that are passed to login mechanism