public interface SocialAuthorizationAgent extends AuthorizationAgent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FORCE_SOCIAL_LOGIN |
static java.lang.String |
SOCIAL_ACCESS_TOKEN |
static java.lang.String |
SOCIAL_IDENTITY_PROVIDER |
AUTH_HEADER, BACKEND_ID, CONTENT_TYPE_HEADER, ENCODING, TAG
Modifier and Type | Method and Description |
---|---|
void |
authenticateSocial(Activity context)
Authenticates the user identified with the username + password combination against the social authentication provider.
|
void |
authenticateSocial(Fragment fragment)
Authenticates the user identified with the username + password combination against the social authentication provider.
|
void |
fetchCurrentUser(GraphRequest.GraphJSONObjectCallback callback,
java.lang.String fields)
Fetch the latest details of the current user from the social server.
|
CallbackManager |
getCallBackManager()
This method will return CallbackManager for the social SDK.
|
void |
setPublishAuthenticationMode(boolean flag)
Set authentication mode for social login to publish.
|
void |
setReadAuthenticationMode(boolean flag)
Set authentication mode for social login to read.
|
void |
setScopes(java.lang.String permission)
sets scopes for social login.
|
void |
setup(Context context,
<any> mFacebookCallback)
This method will initialize the social SDK.
|
authenticate, authenticateAnonymous, authenticateUsingTokenExchange, authenticateUsingTokenExchange, clearSSOTokenExchange, fetchCurrentUser, getAccessToken, getCurrentUser, getHTTPHeaders, invokeCustomCodeJSONRequest, isAuthorized, loadSSOTokenExchange, logout, logout, refreshToken, refreshTokenAsync, validateToken
static final java.lang.String SOCIAL_IDENTITY_PROVIDER
static final java.lang.String SOCIAL_ACCESS_TOKEN
static final java.lang.String FORCE_SOCIAL_LOGIN
void authenticateSocial(Activity context)
context
- Activity Contextvoid authenticateSocial(Fragment fragment)
fragment
- Fragmentvoid setScopes(java.lang.String permission)
permission
- comma-separated list of Facebook permissionsvoid setPublishAuthenticationMode(boolean flag)
flag
- Set or unset the "publish" authentication mode via true or false.void setReadAuthenticationMode(boolean flag)
flag
- Set or unset the "read" authentication mode via true or false.void setup(Context context, <any> mFacebookCallback)
context
- ContextmFacebookCallback
- FacebookCallback objectCallbackManager getCallBackManager()
void fetchCurrentUser(GraphRequest.GraphJSONObjectCallback callback, java.lang.String fields)
callback
- GraphRequest.GraphJSONObjectCallback
objectfields
- comma-separated list of user fields for ex. first_name,last_name,gender,name,locale, email