Class ExtendedFacebookProfileCreator
java.lang.Object
org.pac4j.oauth.profile.creator.OAuth20ProfileCreator
org.pac4j.oauth.profile.facebook.FacebookProfileCreator
de.xima.fc.security.pac4j.facebook.ExtendedFacebookProfileCreator
- All Implemented Interfaces:
org.pac4j.core.profile.creator.ProfileCreator
public class ExtendedFacebookProfileCreator
extends org.pac4j.oauth.profile.facebook.FacebookProfileCreator
Extended Facebook profile creator that adds additional attributes to the profile.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.pac4j.core.client.IndirectClientprotected org.pac4j.oauth.config.OAuthConfigurationprotected final org.slf4j.Loggerprotected static final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
ConstructorsConstructorDescriptionExtendedFacebookProfileCreator(org.pac4j.oauth.config.OAuth20Configuration configuration, org.pac4j.core.client.IndirectClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTokenToProfile(org.pac4j.core.profile.UserProfile profile, com.github.scribejava.core.model.Token token) Optional<org.pac4j.core.profile.UserProfile> create(org.pac4j.core.credentials.Credentials arg0, org.pac4j.core.context.WebContext arg1, org.pac4j.core.context.session.SessionStore arg2) protected com.github.scribejava.core.model.OAuthRequestcreateOAuthRequest(String arg0, com.github.scribejava.core.model.Verb arg1) protected StringsendRequestForData(com.github.scribejava.core.oauth.OAuthService arg0, com.github.scribejava.core.model.Token arg1, String arg2, com.github.scribejava.core.model.Verb arg3) Methods inherited from class org.pac4j.oauth.profile.facebook.FacebookProfileCreator
addExchangeToken, retrieveUserProfileFromTokenMethods inherited from class org.pac4j.oauth.profile.creator.OAuth20ProfileCreator
getAccessToken, signRequest
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
mapper
protected static final com.fasterxml.jackson.databind.ObjectMapper mapper -
configuration
protected org.pac4j.oauth.config.OAuthConfiguration configuration -
client
protected org.pac4j.core.client.IndirectClient client
-
-
Constructor Details
-
ExtendedFacebookProfileCreator
public ExtendedFacebookProfileCreator(org.pac4j.oauth.config.OAuth20Configuration configuration, org.pac4j.core.client.IndirectClient client)
-
-
Method Details
-
addTokenToProfile
protected void addTokenToProfile(org.pac4j.core.profile.UserProfile profile, com.github.scribejava.core.model.Token token) - Overrides:
addTokenToProfilein classorg.pac4j.oauth.profile.creator.OAuth20ProfileCreator
-
create
public Optional<org.pac4j.core.profile.UserProfile> create(org.pac4j.core.credentials.Credentials arg0, org.pac4j.core.context.WebContext arg1, org.pac4j.core.context.session.SessionStore arg2) - Specified by:
createin interfaceorg.pac4j.core.profile.creator.ProfileCreator
-
sendRequestForData
-
createOAuthRequest
protected com.github.scribejava.core.model.OAuthRequest createOAuthRequest(String arg0, com.github.scribejava.core.model.Verb arg1)
-