public class SignedRequestAwareAuthorizationCodeAccessTokenProvider
extends org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeAccessTokenProvider
AuthorizationCodeAccessTokenProvider
and adds
support for signed requests, which are issued by Facebook, if the Canvas-
or Tab-Page of a Facebook-App is accessed for the first time.Modifier and Type | Field and Description |
---|---|
static String |
PARAM_SIGNED_REQUEST |
Constructor and Description |
---|
SignedRequestAwareAuthorizationCodeAccessTokenProvider() |
Modifier and Type | Method and Description |
---|---|
org.codehaus.jackson.map.ObjectMapper |
getObjectMapper() |
String |
getSecret() |
org.springframework.security.oauth2.common.OAuth2AccessToken |
obtainAccessToken(org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails details,
org.springframework.security.oauth2.client.token.AccessTokenRequest parameters) |
void |
setObjectMapper(org.codehaus.jackson.map.ObjectMapper objectMapper) |
void |
setSecret(String secret) |
getAuthorizationResponseExtractor, getUserApprovalSignal, obtainAuthorizationCode, refreshAccessToken, setAuthorizationRequestEnhancer, setScopePrefix, setStateKeyGenerator, setStateMandatory, supportsRefresh, supportsResource
getAccessTokenUri, getHttpMethod, getRequestCallback, getResponseErrorHandler, getResponseExtractor, getRestTemplate, retrieveToken, setAuthenticationHandler, setInterceptors, setMessageConverters, setRequestFactory, setTokenRequestEnhancer
public static final String PARAM_SIGNED_REQUEST
public SignedRequestAwareAuthorizationCodeAccessTokenProvider()
public org.springframework.security.oauth2.common.OAuth2AccessToken obtainAccessToken(org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails details, org.springframework.security.oauth2.client.token.AccessTokenRequest parameters)
obtainAccessToken
in interface org.springframework.security.oauth2.client.token.AccessTokenProvider
obtainAccessToken
in class org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeAccessTokenProvider
public String getSecret()
public void setSecret(String secret)
public org.codehaus.jackson.map.ObjectMapper getObjectMapper()
public void setObjectMapper(org.codehaus.jackson.map.ObjectMapper objectMapper)
Copyright © 2015. All rights reserved.