public class AppleSignInHandler extends Fragment implements IdPHandler
IdPHandler to handle Apple login| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTHORIZE_ENDPOINT |
static java.lang.String |
CODE |
static java.lang.String |
FORM_POST |
static java.lang.String |
FORM_POST_ENTRY |
static int |
RC_SIGN_IN |
static java.lang.String |
TAG |
static java.lang.String |
TOKEN_ENDPOINT |
ACCESS_TOKEN, AUTHORIZATION_CODE, ID_TOKEN, IDP_CLIENT| Constructor and Description |
|---|
AppleSignInHandler() |
| Modifier and Type | Method and Description |
|---|---|
CustomTabsIntent.Builder |
getIntentBuilder(AuthorizationService service,
android.net.Uri uri)
Retrieve the Custom tab builder.
|
java.lang.String |
getTokenType()
Retrieve the result token type (access_token, id_token, authorization_code)
|
void |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data) |
void |
onCreate(android.os.Bundle savedInstanceState) |
void |
signIn(Fragment fragment,
IdPClient idPClient,
FRListener<IdPResult> listener)
Perform the Identity Provider sign in with the current active Fragment
|
void |
signIn(IdPClient idPClient,
FRListener<IdPResult> listener)
Perform the Identity Provider sign in with the current active
androidx.fragment.app.FragmentActivity |
public static final int RC_SIGN_IN
public static final java.lang.String TAG
public static final java.lang.String FORM_POST_ENTRY
public static final java.lang.String AUTHORIZE_ENDPOINT
public static final java.lang.String TOKEN_ENDPOINT
public static final java.lang.String FORM_POST
public static final java.lang.String CODE
public void onCreate(android.os.Bundle savedInstanceState)
public CustomTabsIntent.Builder getIntentBuilder(AuthorizationService service,
android.net.Uri uri)
service - The authorization service that handle request to an OAuth2 authorization serviceuri - The uri to launchpublic void onActivityResult(int requestCode,
int resultCode,
android.content.Intent data)
public java.lang.String getTokenType()
IdPHandlergetTokenType in interface IdPHandlerpublic void signIn(IdPClient idPClient, FRListener<IdPResult> listener)
IdPHandlerandroidx.fragment.app.FragmentActivitysignIn in interface IdPHandleridPClient - The Idp configuration.listener - Listener to listen for the result.public void signIn(Fragment fragment,
IdPClient idPClient,
FRListener<IdPResult> listener)
IdPHandlersignIn in interface IdPHandlerfragment - The Active FragmentidPClient - The Idp configuration.listener - Listener to listen for the result.