File tree Expand file tree Collapse file tree
app/src/main/java/com/credman/cmwallet/openid4vci Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,8 +177,9 @@ class OpenId4VCI(val credentialOfferJson: String) {
177177 /* * Returns null if par endpoint isn't specified in the authorization server metadata. */
178178 @OptIn(ExperimentalUuidApi ::class )
179179 suspend fun requestParEndpoint (): ParResponse ? {
180+ val challengeAndDpopNonce = requestChallengeFromEndpoint()
180181 val clientAttestation = getClientAttestationJwt()
181- val clientAttestationPop = getClientAttestationJwt( )
182+ val clientAttestationPop = generateClientAttestationPopJwt(challengeAndDpopNonce?.first?.attestationChallenge )
182183
183184 val parEndpoint = credentialOffer.authorizationServerMetadata?.mtlsEndpointAliases?.pushedAuthorizationRequestEndpoint ? :
184185 credentialOffer.authorizationServerMetadata?.pushedAuthorizationRequestEndpoint ? : return null
You can’t perform that action at this time.
0 commit comments