validateAuthnResponse

Validates an Authentication Response from the Wallet, where input is either:

  • a URL, containing parameters in the fragment, e.g. https://example.com#id_token=...

  • a URL, containing parameters in the query, e.g. https://example.com?id_token=...

  • parameters encoded as a POST body, e.g. id_token=...&vp_token=...


suspend fun validateAuthnResponse(input: String, externalId: String? = null): AuthnResponseResult(source)

Validates an Authentication Response from the Wallet, where input is either:

  • a URL, containing parameters in the fragment, e.g. https://example.com#id_token=...

  • a URL, containing parameters in the query, e.g. https://example.com?id_token=...

  • parameters encoded as a POST body, e.g. id_token=...&vp_token=...

The externalId will be used to load the corresponding AuthenticationRequestParameters from the store, in case a state parameter was not available in the request (e.g., when using DCAPI).


Validates an Authentication Response from the Wallet, where input is a signed or unsigned DC API response.

The externalId will be used to load the corresponding AuthenticationRequestParameters from the store.


Validates an Authentication Response from the Wallet, in case it has been parsed into ResponseParametersFrom with ResponseParser.


Validates an Authentication Response from the Wallet, in case it has been parsed into ResponseParametersFrom with ResponseParser.

The externalId will be used to load the corresponding AuthenticationRequestParameters from the store, in case a state parameter was not available in the request (e.g., when using DCAPI).