public class WebAuthProvider
extends java.lang.Object
Intent.ACTION_VIEW
intent or also the WebAuthActivity
.
This behaviour is changed using WebAuthProvider.Builder.useBrowser(boolean)
, and defaults to use browser.Modifier and Type | Class and Description |
---|---|
static class |
WebAuthProvider.Builder |
static class |
WebAuthProvider.LogoutBuilder |
Constructor and Description |
---|
WebAuthProvider() |
Modifier and Type | Method and Description |
---|---|
static WebAuthProvider.Builder |
init(Auth0 account)
Deprecated.
This method was renamed to reflect an authentication flow. Please use
login(Auth0) . |
static WebAuthProvider.Builder |
init(android.content.Context context)
Deprecated.
This method was renamed to reflect an authentication flow. Please use
login(Auth0) . You can create an Auth0 instance from a Context using Auth0.Auth0(Context) . |
static WebAuthProvider.Builder |
login(Auth0 account)
Initialize the WebAuthProvider instance for authenticating the user using an account.
|
static WebAuthProvider.LogoutBuilder |
logout(Auth0 account)
Initialize the WebAuthProvider instance for logging out the user using an account.
|
static boolean |
resume(android.content.Intent intent)
Finishes the authentication or log out flow by passing the data received in the activity's onNewIntent() callback.
|
static boolean |
resume(int requestCode,
int resultCode,
android.content.Intent intent)
Deprecated.
This method has been deprecated since it only applied to WebView authentication and Google is no longer supporting it. Please use
resume(Intent) |
@NonNull public static WebAuthProvider.LogoutBuilder logout(@NonNull Auth0 account)
account
- to use for authentication@NonNull public static WebAuthProvider.Builder login(@NonNull Auth0 account)
account
- to use for authentication@NonNull @Deprecated public static WebAuthProvider.Builder init(@NonNull Auth0 account)
login(Auth0)
.account
- to use for authentication@NonNull @Deprecated public static WebAuthProvider.Builder init(@NonNull android.content.Context context)
login(Auth0)
. You can create an Auth0 instance from a Context using Auth0.Auth0(Context)
.context
- a valid context.@Deprecated public static boolean resume(int requestCode, int resultCode, @Nullable android.content.Intent intent)
resume(Intent)
This is no longer required to be called, the redirect is handled internally as long as you've correctly setup the intent-filter.
requestCode
- the request code received on the onActivityResult() callresultCode
- the result code received on the onActivityResult() callintent
- the data received on the onActivityResult() callpublic static boolean resume(@Nullable android.content.Intent intent)
This is no longer required to be called, the authentication is handled internally as long as you've correctly setup the intent-filter.
intent
- the data received on the onNewIntent() call. When null is passed, the authentication will be considered canceled.