Package org.forgerock.android.auth.idp
Interface IdPHandler
-
- All Known Implementing Classes:
AppleSignInHandler,FacebookSignInHandler,GoogleIdentityServicesHandler,GoogleSignInHandler
public interface IdPHandlerIdentity Provider Handler to handle sign in with providedIdPClient
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACCESS_TOKENstatic java.lang.StringAUTHORIZATION_CODEstatic java.lang.StringID_TOKENstatic java.lang.StringIDP_CLIENT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetTokenType()Retrieve the result token type (access_token, id_token, authorization_code)voidsignIn(androidx.fragment.app.Fragment fragment, IdPClient idPClient, FRListener<IdPResult> listener)Perform the Identity Provider sign in with the current active FragmentvoidsignIn(IdPClient idPClient, FRListener<IdPResult> listener)Perform the Identity Provider sign in with the current activeFragmentActivity
-
-
-
Field Detail
-
ID_TOKEN
static final java.lang.String ID_TOKEN
- See Also:
- Constant Field Values
-
AUTHORIZATION_CODE
static final java.lang.String AUTHORIZATION_CODE
- See Also:
- Constant Field Values
-
ACCESS_TOKEN
static final java.lang.String ACCESS_TOKEN
- See Also:
- Constant Field Values
-
IDP_CLIENT
static final java.lang.String IDP_CLIENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTokenType
java.lang.String getTokenType()
Retrieve the result token type (access_token, id_token, authorization_code)- Returns:
- The Token Type
-
signIn
void signIn(IdPClient idPClient, FRListener<IdPResult> listener)
Perform the Identity Provider sign in with the current activeFragmentActivity- Parameters:
idPClient- The Idp configuration.listener- Listener to listen for the result.
-
signIn
void signIn(androidx.fragment.app.Fragment fragment, IdPClient idPClient, FRListener<IdPResult> listener)Perform the Identity Provider sign in with the current active Fragment- Parameters:
fragment- The Active FragmentidPClient- The Idp configuration.listener- Listener to listen for the result.
-
-