public class EmbeddedLoginTokenGranter
extends org.springframework.security.oauth2.provider.token.AbstractTokenGranter
EmbeddedLoginTokenEndpointAuthenticationToken
in the security context.Constructor and Description |
---|
EmbeddedLoginTokenGranter(org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices tokenServices,
org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService,
org.springframework.security.oauth2.provider.OAuth2RequestFactory requestFactory) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.security.oauth2.provider.OAuth2Authentication |
getOAuth2Authentication(org.springframework.security.oauth2.provider.ClientDetails client,
org.springframework.security.oauth2.provider.TokenRequest tokenRequest)
Use the
EmbeddedLoginTokenEndpointAuthenticationToken to create a
OAuth2Authentication to be used in
AuthorizationServerTokenServices.createAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication) |
org.springframework.security.oauth2.common.OAuth2AccessToken |
grant(String grantType,
org.springframework.security.oauth2.provider.TokenRequest tokenRequest) |
public EmbeddedLoginTokenGranter(org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices tokenServices, org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService, org.springframework.security.oauth2.provider.OAuth2RequestFactory requestFactory)
public org.springframework.security.oauth2.common.OAuth2AccessToken grant(String grantType, org.springframework.security.oauth2.provider.TokenRequest tokenRequest)
grant
in interface org.springframework.security.oauth2.provider.TokenGranter
grant
in class org.springframework.security.oauth2.provider.token.AbstractTokenGranter
protected org.springframework.security.oauth2.provider.OAuth2Authentication getOAuth2Authentication(org.springframework.security.oauth2.provider.ClientDetails client, org.springframework.security.oauth2.provider.TokenRequest tokenRequest)
EmbeddedLoginTokenEndpointAuthenticationToken
to create a
OAuth2Authentication
to be used in
AuthorizationServerTokenServices.createAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication)
getOAuth2Authentication
in class org.springframework.security.oauth2.provider.token.AbstractTokenGranter
client
- tokenRequest
- Copyright © 2021. All rights reserved.