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 |
Constructor and Description |
---|
WebAuthProvider() |
Modifier and Type | Method and Description |
---|---|
static WebAuthProvider.Builder |
init(Auth0 account)
Initialize the WebAuthProvider instance with an account.
|
static WebAuthProvider.Builder |
init(android.content.Context context)
Initialize the WebAuthProvider instance with an Android Context.
|
static boolean |
resume(android.content.Intent intent)
Finishes the authentication 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) |
public static WebAuthProvider.Builder init(@NonNull Auth0 account)
account
- to use for authenticationpublic static WebAuthProvider.Builder init(@NonNull android.content.Context 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 authentication 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