WebAuthentication
Initializes a web authentication client backed by a KMP OAuth2Client.
This is the preferred constructor. The KMP client is used directly to create the underlying AuthorizationCodeFlow and RedirectEndSessionFlow.
Parameters
the KMP OAuth2Client to use for authorization requests.
the WebAuthenticationProvider which will be used to show the UI when performing the redirect flows.
Deprecated
Use the constructor taking com.okta.authfoundation.client.kmp.OAuth2Client instead.
Replace with
import com.okta.authfoundation.client.kmp.OAuth2Client
WebAuthentication(kmpClient, webAuthenticationProvider)Initializes a web authentication client.
Parameters
the WebAuthenticationProvider which will be used to show the UI when performing the redirect flows.
Deprecated
Use the constructor taking com.okta.authfoundation.client.kmp.OAuth2Client instead.
Replace with
import com.okta.authfoundation.client.kmp.OAuth2Client
WebAuthentication(kmpClient, webAuthenticationProvider)Initializes a web authentication client.
Parameters
the OidcConfiguration specifying the authorization servers.
the WebAuthenticationProvider which will be used to show the UI when performing the redirect flows.
Deprecated
Use the constructor taking com.okta.authfoundation.client.kmp.OAuth2Client instead.
Replace with
import com.okta.authfoundation.client.kmp.OAuth2Client
WebAuthentication(kmpClient, webAuthenticationProvider)Initializes a web authentication client backed by an Android-only OAuth2Client.
Parameters
the Android OAuth2Client to use for authorization requests.
the WebAuthenticationProvider which will be used to show the UI when performing the redirect flows.