createCredential
Creates the credential request to be sent to the credential issuer. Also send along the TokenResponseParameters.accessToken from the token response in HTTP header Authorization see TokenResponseParameters.toHttpHeaderValue. Be sure to include a DPoP header if TokenResponseParameters.tokenType is DPoP, see BuildDPoPHeader. For sample ktor code see OpenId4VciClient in vck-openid-ktor.
Parameters
from the authorization server token endpoint
the issuer's metadata, see IssuerMetadata
which credential to request (needed to build the correct proof)
if required by the issuer (see IssuerMetadata.nonceEndpointUrl), the value from there, exactly ClientNonceResponse.clientNonce
the scope value requested in the token request, since the authorization server may not set it in tokenResponse