startProvisioningWithAuthRequestReturningResult

suspend fun startProvisioningWithAuthRequestReturningResult(credentialIssuerUrl: String, credentialIdentifierInfo: CredentialIdentifierInfo, reissuingStoreEntryId: Long? = null): KmmResult<CredentialIssuanceResult.OpenUrlForAuthnRequest>(source)

Starts the issuing process at credentialIssuerUrl. Clients need to handle the result, i.e. open the URL for user authentication or store the credentials, see CredentialIssuanceResult.Success.prepareCredentialStorage. Clients need to call resumeWithAuthCode after getting the authorization code back from the authorization server, e.g. by the Wallet app getting opened (see redirectUrl at oid4vciClient) after the browser being redirecting back from the authorization server.

Parameters

credentialIssuerUrl

URL of the credential issuer service

credentialIdentifierInfo

credential to request, i.e. picked by user selection

reissuingStoreEntryId

the stored credential the new one replaces, if any, kept in the ProvisioningContext and returned in CredentialIssuanceResult.Success.reissuingStoreEntryId


suspend fun startProvisioningWithAuthRequestReturningResult(credentialIssuerUrl: String, credentialIdentifierInfos: NonEmptyList<CredentialIdentifierInfo>, reissuingStoreEntryId: Long? = null): KmmResult<CredentialIssuanceResult.OpenUrlForAuthnRequest>(source)

Starts the issuing process at credentialIssuerUrl for all of credentialIdentifierInfos with one authorization, like the overload for one credential, so that the user authenticates only once.

Parameters

credentialIssuerUrl

URL of the credential issuer service

credentialIdentifierInfos

credentials to request, i.e. picked by user selection, all of the same credential issuer

reissuingStoreEntryId

the stored credential the new ones replace, if any, kept in the ProvisioningContext and returned in CredentialIssuanceResult.Success.reissuingStoreEntryId