loginWithWebView
client.loginWithWebView(
activity = this,
// Optional arguments
state = "state",
nonce = "nonce",
origin = "origin",
fullScreenWebView = false <1>
)
| 1 | WebView displays edge-to-edge by default and adds padding for system bars.
Enabling (true) fullScreenWebView disables the padding for the system bars.
See fullScreenWebView for more details. |
Description
|
We recommend using the standard native login or loginWithWeb. Proceed with caution while using this particular method for user authentication. |
Opens an insecure webview through the authorization endpoint:
-
If end-users have an active in-app SSO session, the authorization endpoint immediately redirects to the application.
The SSO session being within the webview itself.
-
If end-users do not have an active in-app SSO session, they are redirected to the client’s Login URL for authentication.
-
You must have configured a Login URL and enabled request orchestration tokens for your identity client.
Orchestrated flows are supported from version
1.24.0for the Core SDK and version1.16.0for the UI SDK.
| You can optionally customize the WebView if desired. |
Examples
client.loginWithWebView(
activity = this,
state = "state",
nonce = "nonce",
origin = "origin",
)
Parameters
The Android activity. |
|
Free text parameter describing the source of the event (only for reporting purposes). |
|
An OAuth2 state value. |
|
An OIDC nonce value. |
|
Indicates whether to launch the webview in full-screen mode without padding for system bars. WebView displays edge-to-edge by default and adds padding for system bars.
Enabling ( Default: |
Response
Type: Unit
ReachFiveError
message |
The message of the error. |
||||||||||||||
getErrorCode() |
The error code’s enumeration value. |
||||||||||||||
code |
The HTTP status code or SDK error code. See Android SDK errors for more details. |
||||||||||||||
exception |
The stack trace of the error. |
||||||||||||||
data |
Additional data about the error.
|