public abstract class OauthExternalAuthenticationConsumer extends AbstractExternalAuthenticationConsumer<OAuthProviderProperties>
Modifier and Type | Field and Description |
---|---|
protected static String |
AUTH_TOKEN_VERIFIER_PARAMETER |
protected static String |
AUTHENTICATION_PROVIDER_NOT_REGISTERED |
protected static org.apache.wicket.MetaDataKey<org.scribe.model.Token> |
METADATAKEY_REQUEST_TOKEN |
protected static String |
TAG_TEXT_END |
protected static String |
TAG_TEXT_START |
stringResourceLoader
Constructor and Description |
---|
OauthExternalAuthenticationConsumer() |
Modifier and Type | Method and Description |
---|---|
protected void |
additionalActionsToTake(org.scribe.model.OAuthRequest oAuthRequest) |
protected void |
afterAccessTokenGot(org.scribe.model.Token accessToken) |
void |
beginConsumption(String absoluteRequestURL) |
org.xaloon.core.api.security.external.AuthenticationToken |
endConsumption(String loginType,
String absoluteRequestURL) |
protected void |
fillAuthenticationAttributes(org.xaloon.core.api.security.external.AuthenticationToken token,
Element xmlElement)
Fill additional attributes of authentication token
|
protected void |
fillAuthenticationAttributes(org.xaloon.core.api.security.external.AuthenticationToken token,
org.json.simple.JSONObject jsonObject) |
protected Map<String,String> |
getAuthenticationAttributes() |
protected abstract String |
getAuthenticationResourceUrlToCheck() |
protected org.scribe.model.Token |
getRequestToken() |
protected abstract Class<? extends org.scribe.builder.api.Api> |
getServiceProvider() |
protected abstract String |
getVerificationValue(javax.servlet.http.HttpServletRequest request) |
protected void |
init(org.scribe.builder.ServiceBuilder serviceBuilder,
int phase) |
protected boolean |
isDataRequiredInXmlFormat() |
boolean |
isEnabled() |
protected String |
processRequestTokenEndpointUrl(String requestTokenEndpointUrl) |
void |
setOpenIdUrl(String openIdUrl) |
protected abstract void |
throwAuthorizationFlow(org.scribe.oauth.OAuthService service) |
fixUsername, getAuthenticationProviderProperties, getCustomAuthenticationProvider
protected static final org.apache.wicket.MetaDataKey<org.scribe.model.Token> METADATAKEY_REQUEST_TOKEN
protected static final String AUTHENTICATION_PROVIDER_NOT_REGISTERED
protected static final String AUTH_TOKEN_VERIFIER_PARAMETER
protected static final String TAG_TEXT_END
protected static final String TAG_TEXT_START
protected abstract Class<? extends org.scribe.builder.api.Api> getServiceProvider()
protected abstract void throwAuthorizationFlow(org.scribe.oauth.OAuthService service)
protected abstract String getAuthenticationResourceUrlToCheck()
protected abstract String getVerificationValue(javax.servlet.http.HttpServletRequest request)
public void setOpenIdUrl(String openIdUrl)
public boolean isEnabled()
public void beginConsumption(String absoluteRequestURL)
protected String processRequestTokenEndpointUrl(String requestTokenEndpointUrl)
public org.xaloon.core.api.security.external.AuthenticationToken endConsumption(String loginType, String absoluteRequestURL)
protected void afterAccessTokenGot(org.scribe.model.Token accessToken)
protected void fillAuthenticationAttributes(org.xaloon.core.api.security.external.AuthenticationToken token, Element xmlElement)
token
- xmlElement
- protected void fillAuthenticationAttributes(org.xaloon.core.api.security.external.AuthenticationToken token, org.json.simple.JSONObject jsonObject)
protected Map<String,String> getAuthenticationAttributes()
protected void init(org.scribe.builder.ServiceBuilder serviceBuilder, int phase)
protected org.scribe.model.Token getRequestToken()
protected void additionalActionsToTake(org.scribe.model.OAuthRequest oAuthRequest)
protected boolean isDataRequiredInXmlFormat()
Copyright © 2012 xaloon.org. All Rights Reserved.