AuthnResponseResult

An authorization response of the wallet, processed by OpenId4VpVerifier.validateAuthnResponse or DcApiVerifier.validateAuthnResponse: correlated with its request, which processing it has consumed, so that the request can't be answered again.

A processed response is either a presentation, see Success, or an authorization error response, see Error. Answer both with directPostHttpResponse for the response modes direct_post and direct_post.jwt (OpenID4VP 1.0, 8.2). A response that has not been processed, i.e. that is malformed, can't be correlated with a request, or violates the protection its request requires, fails validateAuthnResponse instead.

Inheritors

Types

Link copied to clipboard

The wallet answered with an authorization error response (OpenID4VP 1.0, 8.2, 8.5, A.4), e.g. because the user declined. The error ends the request like a presentation, so another attempt needs a new request.

Link copied to clipboard
data class Success(val vpTokenResult: KmmResult<VpTokenValidationResult>, val request: AuthenticationRequestParameters, val validationReport: ValidationReport, val presentationValidations: Map<DCQLCredentialQueryIdentifier, List<PresentationValidationResult>> = emptyMap()) : AuthnResponseResult

The wallet presented: validationReport tells whether the response is accepted under the policy of the verifier, with every check of every presentation, and presentationValidations holds the validated presentations.

Properties

Link copied to clipboard

The request this response answers, consumed by processing the response.

Link copied to clipboard
open val state: String?

The state of request, to find the transaction of the integrator.