startAuthorizationResponsePreparation
suspend fun startAuthorizationResponsePreparation(request: RequestParametersFrom.DcApiRequest): KmmResult<DcApiPreparationState>(source)
Validates the request and prepares credential selection. Clients can inspect the returned state, ask for user consent, and resume with finalizeAuthorizationResponse.
suspend fun startAuthorizationResponsePreparation(request: RequestParametersFrom.DcApiRequest, policy: ValidationPolicy): KmmResult<DcApiRequestValidation>(source)
Validates request under policy and prepares credential selection like the overload without a policy, also for a rejected request: check the decision of DcApiRequestValidation.validationReport before presenting. For an ISO/IEC 18013-7 Annex C request, which has no request object, the report is the one of its relying party, reported like a proximity request, see RelyingPartyValidator.validate: a request without reader authentication is rejected as unsigned, and one without registration certificates as ValidationPolicy.registration says.