WebAuthnService

Constructors

Link copied to clipboard
constructor(oauthService: IOauthService, fidoApiService: IFidoApiService, sessionService: ISessionService, persistenceService: IPersistenceService, businessApiService: IBusinessApiService<A>)

Properties

Link copied to clipboard
val LOG_TAG: String = "WebAuthnService"

Functions

Link copied to clipboard
open fun fromAttestationResponse(uid: String, attestationJson: String, optionsJson: String): Pair<WebAuthnKeyModel, String>
Link copied to clipboard
Get available credentials (credentials manager from server).
Link copied to clipboard
Get stored passkeys.
Link copied to clipboard
open fun handleFidoResult(activityResult: ActivityResult)
Handle service activity sender result.
Link copied to clipboard
open fun login(gigyaCallback: GigyaLoginCallback<A>)
open fun login(params: Map<String, Any>, gigyaCallback: GigyaLoginCallback<A>)

open fun login(resultLauncher: ActivityResultLauncher<IntentSenderRequest>, gigyaCallback: GigyaLoginCallback<A>)
Initialize WebAuthn/Fido login/signing flow.
open fun login(resultLauncher: ActivityResultLauncher<IntentSenderRequest>, params: Map<String, Any>, gigyaCallback: GigyaLoginCallback<A>)
* Initialize WebAuthn/Fido login/signing flow.
Link copied to clipboard
open fun onLogin(optionsBinding: WebAuthnOptionsBinding, assertionResponse: Array<Byte>, fido2Credential: Array<Byte>)
Handle WebAuthn/Fido login result.
Link copied to clipboard
open fun onRegistration(optionsBinding: WebAuthnOptionsBinding, attestationResponse: Array<Byte>, credentialResponse: Array<Byte>)
Handle WebAuthn/Fido registration result.
Link copied to clipboard
open fun passkeyForUser(uid: String): Boolean
Check passwordless key (FIDO2/Passkey) availability for provided user UID.
Link copied to clipboard
open fun register(gigyaCallback: GigyaCallback<GigyaApiResponse>)

Initialize WebAuthn/Fido registration flow.
Link copied to clipboard
open fun revoke(gigyaCallback: GigyaCallback<GigyaApiResponse>)
open fun revoke(id: String, gigyaCallback: GigyaCallback<GigyaApiResponse>)
Initialize revoke key flow.
Link copied to clipboard
The Passkey authentication provider is used to handle passkey authentication.