public class ImplicitAccessTokenProvider extends OAuth2AccessTokenSupport implements AccessTokenProvider
DefaultAccessTokenRequest
and these will be passed onto the authorization endpoint on the server. The server then has to interpret those
parameters, together with any other information available (e.g. from a cookie), and decide if a user can be
authenticated and if the user has approved the grant of the access token. Only if those two conditions are met should
an access token be available through this provider.logger| Constructor and Description |
|---|
ImplicitAccessTokenProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.client.ResponseExtractor<OAuth2AccessToken> |
getResponseExtractor() |
OAuth2AccessToken |
obtainAccessToken(OAuth2ProtectedResourceDetails details,
AccessTokenRequest request)
Obtain a new access token for the specified protected resource.
|
OAuth2AccessToken |
refreshAccessToken(OAuth2ProtectedResourceDetails resource,
OAuth2RefreshToken refreshToken,
AccessTokenRequest request) |
boolean |
supportsRefresh(OAuth2ProtectedResourceDetails resource) |
boolean |
supportsResource(OAuth2ProtectedResourceDetails resource)
Whether this provider supports the specified resource.
|
getAccessTokenUri, getHttpMethod, getRequestCallback, getResponseErrorHandler, getRestTemplate, retrieveToken, setAuthenticationHandler, setInterceptors, setMessageConverters, setRequestFactory, setTokenRequestEnhancerpublic boolean supportsResource(OAuth2ProtectedResourceDetails resource)
AccessTokenProvidersupportsResource in interface AccessTokenProviderresource - The resource.public boolean supportsRefresh(OAuth2ProtectedResourceDetails resource)
supportsRefresh in interface AccessTokenProviderresource - The resource to checkpublic OAuth2AccessToken refreshAccessToken(OAuth2ProtectedResourceDetails resource, OAuth2RefreshToken refreshToken, AccessTokenRequest request) throws UserRedirectRequiredException
refreshAccessToken in interface AccessTokenProviderresource - the resource for which a token refresh is requiredrefreshToken - the refresh token to sendUserRedirectRequiredExceptionpublic OAuth2AccessToken obtainAccessToken(OAuth2ProtectedResourceDetails details, AccessTokenRequest request) throws UserRedirectRequiredException, org.springframework.security.access.AccessDeniedException, OAuth2AccessDeniedException
AccessTokenProviderobtainAccessToken in interface AccessTokenProviderdetails - The protected resource for which this provider is to obtain an access token.request - The parameters of the request giving context for the token details if any.UserRedirectRequiredException - If the provider requires the current user to be redirected for
authorization.org.springframework.security.access.AccessDeniedException - If the user denies access to the protected resource.OAuth2AccessDeniedExceptionprotected org.springframework.web.client.ResponseExtractor<OAuth2AccessToken> getResponseExtractor()
getResponseExtractor in class OAuth2AccessTokenSupportCopyright © 2019. All rights reserved.