AuthenticationService
class AuthenticationService(challengeStore: ChallengeStore, credentialStore: CredentialStore, userAccountStore: UserAccountStore, signatureVerifier: SignatureVerifier, rpIdHasher: RpIdHasher, clientDataDecoder: CollectedClientDataDecoder, extensionHooks: List<WebAuthnExtensionHook> = [], originMetadataProvider: OriginMetadataProvider = NoOpOriginMetadataProvider, nowEpochMs: () -> Long = { System.currentTimeMillis() })
Server authentication ceremony service (WebAuthn L3 §7.2).
Constructors
Link copied to clipboard
constructor(challengeStore: ChallengeStore, credentialStore: CredentialStore, userAccountStore: UserAccountStore, signatureVerifier: SignatureVerifier, rpIdHasher: RpIdHasher, clientDataDecoder: CollectedClientDataDecoder, extensionHooks: List<WebAuthnExtensionHook> = [], originMetadataProvider: OriginMetadataProvider = NoOpOriginMetadataProvider, nowEpochMs: () -> Long = { System.currentTimeMillis() })
Functions
Link copied to clipboard
W3C WebAuthn L3: §7.2. Verifying an Authentication Assertion
Link copied to clipboard
suspend fun start(request: AuthenticationStartRequest): ValidationResult<PublicKeyCredentialRequestOptions>