Azure-Samples / active-directory-verifiable-credentials

A code sample demonstrating how to use Azure Active Directory's preview functionality to issue and consume verifiable credentials.
108 stars 64 forks source link

Error Code: invalidSignature -- VCEntities:PresentationRequestValidationError #27

Closed ibLaunch closed 2 years ago

ibLaunch commented 3 years ago

Following the steps from here https://docs.microsoft.com/en-us/azure/active-directory/verifiable-credentials/issue-verify-verifiable-credentials-your-tenant.

  1. Step 1 works fine
  2. For step 2 (Using own Azure AD)- Authenticator keeps giving the following error while getting credential:

Authenticator Error: Error Code: invalidSignature Error Details: Error.. VCEntities:PresentationRequestValidationError Code 2

Logs from Authenticator: 2021-04-14 13:11:51.102 INFO VerifiableCredential 0 TID=1 62 (init(cardUseCase:settings:cameraPermissionValidator:correlationHeader:telemetryClient:)) DIDTableViewInitialLoad properties: ["Count": "1", "CorrelationVector": ""]2021-04-14 13:11:57.068 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Line": "55", "Message": "Correlation Vector for VCNetworking.FetchPresentationRequestOperation: oHaL8D6HTXWiCbRiY2svsQ.1", "Function": "fire()", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift", "CorrelationVector": "oHaL8D6HTXWiCbRiY2svsQ.1"]2021-04-14 13:11:57.367 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Message": "Correlation Vector for VCNetworking.FetchDIDDocumentOperation: oHaL8D6HTXWiCbRiY2svsQ.2", "Function": "fire()", "Line": "55", "CorrelationVector": "oHaL8D6HTXWiCbRiY2svsQ.2", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift"]2021-04-14 13:11:58.267 ERRO VerifiableCredential 0 TID=1 79 (fetchFromUrl(url:)) Error: Error: VCEntities.PresentationRequestValidatorError code: 2 Message: Failed to get the presentation request Properties: ["Function": "fetchFromUrl(url:)", "Message": "Failed to get the presentation request", "Error": "Error: VCEntities.PresentationRequestValidatorError code: 2", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/VerifiableCredentialWallet/ViewModel/RequestProcessorViewModel.swift", "CorrelationVector": "oHaL8D6HTXWiCbRiY2svsQ.2", "Line": "79"]2021-04-14 13:11:58.269 INFO VerifiableCredential 0 TID=1 141 (stopTrackCurrentMeasuredEvent()) DIDPresentationRequest properties: ["CorrelationVector": "oHaL8D6HTXWiCbRiY2svsQ.2", "DIDSource": "QRScanner", "HasFailed": "true", "DIDFirstTimeOnBoarding": "false"]2021-04-14 13:11:58.269 VERB VerifiableCredential 0 TID=1 261 (navigateUsing(navigationBlock:)) navigateUsing: view had appeared previously CorrelationVector: oHaL8D6HTXWiCbRiY2svsQ.22021-04-14 13:11:58.288 VERB VerifiableCredential 0 TID=1 90 (configure()) Showing error page with invalidSignature details:Error: VCEntities.PresentationRequestValidatorError code: 2 CorrelationVector: oHaL8D6HTXWiCbRiY2svsQ.22021-04-14 13:14:29.545 VERB VerifiableCredential 0 TID=1 90 (configure()) Showing error page with invalidSignature details:Error: VCEntities.PresentationRequestValidatorError code: 2 CorrelationVector: oHaL8D6HTXWiCbRiY2svsQ.22021-04-14 13:14:33.722 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Function": "fire()", "Line": "55", "Message": "Correlation Vector for VCNetworking.FetchPresentationRequestOperation: zRbSMpxmQvy05HaCqf2Etg.1", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift", "CorrelationVector": "zRbSMpxmQvy05HaCqf2Etg.1"]2021-04-14 13:14:33.926 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Line": "55", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift", "CorrelationVector": "zRbSMpxmQvy05HaCqf2Etg.2", "Message": "Correlation Vector for VCNetworking.FetchDIDDocumentOperation: zRbSMpxmQvy05HaCqf2Etg.2", "Function": "fire()"]2021-04-14 13:14:34.491 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Line": "55", "Function": "fire()", "Message": "Correlation Vector for VCNetworking.FetchDIDDocumentOperation: zRbSMpxmQvy05HaCqf2Etg.3", "CorrelationVector": "zRbSMpxmQvy05HaCqf2Etg.3", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift"]2021-04-14 13:14:34.599 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Line": "55", "Function": "fire()", "Message": "Correlation Vector for VCNetworking.FetchWellKnownConfigDocumentOperation: zRbSMpxmQvy05HaCqf2Etg.4", "CorrelationVector": "zRbSMpxmQvy05HaCqf2Etg.4", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift"]2021-04-14 13:14:35.278 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Message": "Correlation Vector for VCNetworking.FetchContractOperation: zRbSMpxmQvy05HaCqf2Etg.5", "Function": "fire()", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift", "Line": "55", "CorrelationVector": "zRbSMpxmQvy05HaCqf2Etg.5"]2021-04-14 13:14:37.289 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Line": "55", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift", "Function": "fire()", "Message": "Correlation Vector for VCNetworking.FetchDIDDocumentOperation: zRbSMpxmQvy05HaCqf2Etg.6", "CorrelationVector": "zRbSMpxmQvy05HaCqf2Etg.6"]2021-04-14 13:14:37.568 INFO VerifiableCredential 0 TID=1 55 (fire()) ["File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift", "Line": "55", "CorrelationVector": "zRbSMpxmQvy05HaCqf2Etg.7", "Message": "Correlation Vector for VCNetworking.FetchWellKnownConfigDocumentOperation: zRbSMpxmQvy05HaCqf2Etg.7", "Function": "fire()"]2021-04-14 13:14:38.609 VERB VerifiableCredential 0 TID=1 261 (navigateUsing(navigationBlock:)) navigateUsing: view had appeared previously CorrelationVector: zRbSMpxmQvy05HaCqf2Etg.72021-04-14 13:17:40.326 INFO VerifiableCredential 0 TID=1 71 (performAction()) DIDLinkedDomainsFailureContinueTapped properties: ["CorrelationVector": "zRbSMpxmQvy05HaCqf2Etg.7"]2021-04-14 13:35:30.360 INFO VerifiableCredential 0 TID=1 141 (stopTrackCurrentMeasuredEvent()) DIDIssuanceRequest properties: ["LinkedDomainsStatus": "linkedDomainUnverified", "DIDCountOfSelfIssuedRequested": "0", "DIDCountOfVCRequested": "0", "CorrelationVector": "zRbSMpxmQvy05HaCqf2Etg.7", "DIDIsCancelled": "true", "DIDFirstTimeOnBoarding": "false", "DIDSource": "QRScanner", "DIDCountOfIdTokenRequested": "1"]2021-04-14 15:15:43.779 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Line": "55", "CorrelationVector": "rbiCiQQARoOEpiQMWC5RRQ.1", "Message": "Correlation Vector for VCNetworking.FetchPresentationRequestOperation: rbiCiQQARoOEpiQMWC5RRQ.1", "Function": "fire()", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift"]2021-04-14 15:15:44.000 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Line": "55", "CorrelationVector": "rbiCiQQARoOEpiQMWC5RRQ.2", "Message": "Correlation Vector for VCNetworking.FetchDIDDocumentOperation: rbiCiQQARoOEpiQMWC5RRQ.2", "Function": "fire()", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift"]2021-04-14 15:15:44.516 ERRO VerifiableCredential 0 TID=1 79 (fetchFromUrl(url:)) Error: Error: VCEntities.PresentationRequestValidatorError code: 2 Message: Failed to get the presentation request Properties: ["Function": "fetchFromUrl(url:)", "CorrelationVector": "rbiCiQQARoOEpiQMWC5RRQ.2", "Line": "79", "Error": "Error: VCEntities.PresentationRequestValidatorError code: 2", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/VerifiableCredentialWallet/ViewModel/RequestProcessorViewModel.swift", "Message": "Failed to get the presentation request"]2021-04-14 15:15:44.517 INFO VerifiableCredential 0 TID=1 141 (stopTrackCurrentMeasuredEvent()) DIDPresentationRequest properties: ["DIDSource": "QRScanner", "CorrelationVector": "rbiCiQQARoOEpiQMWC5RRQ.2", "HasFailed": "true", "DIDFirstTimeOnBoarding": "false"]2021-04-14 15:15:44.518 VERB VerifiableCredential 0 TID=1 261 (navigateUsing(navigationBlock:)) navigateUsing: view had appeared previously CorrelationVector: rbiCiQQARoOEpiQMWC5RRQ.22021-04-14 15:15:44.558 VERB VerifiableCredential 0 TID=1 90 (configure()) Showing error page with invalidSignature details:Error: VCEntities.PresentationRequestValidatorError code: 2 CorrelationVector: rbiCiQQARoOEpiQMWC5RRQ.22021-04-14 15:39:21.092 VERB VerifiableCredential 0 TID=1 90 (configure()) Showing error page with invalidSignature details:Error: VCEntities.PresentationRequestValidatorError code: 2 CorrelationVector: rbiCiQQARoOEpiQMWC5RRQ.2

timcappalli commented 3 years ago

["Function": "fetchFromUrl(url:)", "Message": "Failed to get the presentation request",

Authenticator isn't able to fetch the request. Are you able to manually get the presentation request in the browser on the same device?

ibLaunch commented 3 years ago

How do I do that? The issuance URL is accessible via browser. DID is on ION.

This issue happens as soon as I switch to Azure AD.

timcappalli commented 3 years ago

The URL will be logged to the browser console.


From: HB @.> Sent: Wednesday, April 14, 2021 12:41 To: Azure-Samples/active-directory-verifiable-credentials @.> Cc: Tim Cappalli @.>; Comment @.> Subject: Re: [Azure-Samples/active-directory-verifiable-credentials] Error Code: invalidSignature -- VCEntities:PresentationRequestValidationError (#27)

How do I do that? The issuance URL is accessible via browser. DID is on ION.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2Factive-directory-verifiable-credentials%2Fissues%2F27%23issuecomment-819660313&data=04%7C01%7Ctim.cappalli%40microsoft.com%7Cfd4fb71e5e5441c1268208d8ff6424eb%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637540152890815163%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=aMZAGQT1%2FOzzVe8PIIMNH0soYVDr%2FOry3npdyZxtaLA%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABRNGPGEFPK6EGCY53SAMVLTIXATBANCNFSM425XBGDA&data=04%7C01%7Ctim.cappalli%40microsoft.com%7Cfd4fb71e5e5441c1268208d8ff6424eb%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637540152890825109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=YbJcUfzxDwiT%2B8hbZnB%2Bu1uje4JbxcVK%2Bnsjj84Tx6s%3D&reserved=0.

ibLaunch commented 3 years ago

This is the message in the console as it loads the QR code.

Not Android or IOS. Generating QR code encoded with openid://vc/?request_uri=https%3A%2F%2F958cf2491b60.ngrok.io%2Fissue-request.jwt%3Fid%3DyHp1Wd9c3-F6kCoODv4RTtyUvkVrRolv

here is decoded URL in the browser - that is not working. openid://vc/?request_uri=https://958cf2491b60.ngrok.io/issue-request.jwt?id=yHp1Wd9c3-F6kCoODv4RTtyUvkVrRolv

However, request URI does work: https://958cf2491b60.ngrok.io/issue-request.jwt?id=yHp1Wd9c3-F6kCoODv4RTtyUvkVrRolv

timcappalli commented 3 years ago

Decode the request_uri and then try to access it directly from the same device where Authenticator is being invoked. You should see a JWT in the browser. If you can't access it, that is your problem, the issuer/verifier is not reachable from your device.


From: HB @.> Sent: Wednesday, April 14, 2021 13:57 To: Azure-Samples/active-directory-verifiable-credentials @.> Cc: Tim Cappalli @.>; Comment @.> Subject: Re: [Azure-Samples/active-directory-verifiable-credentials] Error Code: invalidSignature -- VCEntities:PresentationRequestValidationError (#27)

This is the message in console as it loads the QR code.

Not Android or IOS. Generating QR code encoded with openid://vc/?request_uri=https%3A%2F%2F958cf2491b60.ngrok.io%2Fissue-request.jwt%3Fid%3DyHp1Wd9c3-F6kCoODv4RTtyUvkVrRolv

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2Factive-directory-verifiable-credentials%2Fissues%2F27%23issuecomment-819719257&data=04%7C01%7Ctim.cappalli%40microsoft.com%7C2cbdc11fae8246336df708d8ff6ec27c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637540198463215001%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=xFxvpBCAo6KAxZvsVC7NnZp5NWPYad%2FSQ7xn4vYeT8k%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABRNGPEU6FZJS5M4DALSB23TIXJQJANCNFSM425XBGDA&data=04%7C01%7Ctim.cappalli%40microsoft.com%7C2cbdc11fae8246336df708d8ff6ec27c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637540198463215001%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=udWOVhjX196TM3AlmI2q1BU%2BYyDvtMD4T2Hw8oRckk4%3D&reserved=0.

ibLaunch commented 3 years ago

I can access the request URI from my iPhone (Chrome). Although it gave me a message saying do I want to translate response to English. I suspect that is because of the long string in the response.

https://958cf2491b60.ngrok.io/issue-request.jwt?id=yHp1Wd9c3-F6kCoODv4RTtyUvkVrRolv

Any thoughts?

ibLaunch commented 3 years ago

While Scanning issuance QR code, here is the latest issue from logs on MS Authenticator:

2021-05-11 17:53:28.509 INFO VerifiableCredential 0 TID=1 62 (init(cardUseCase:settings:cameraPermissionValidator:correlationHeader:telemetryClient:)) DIDTableViewInitialLoad properties: ["Count": "0", "CorrelationVector": ""]2021-05-11 17:53:38.076 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Function": "fire()", "Line": "55", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift", "Message": "Correlation Vector for VCNetworking.FetchPresentationRequestOperation: K+XaipIQT9q9qZpxGA2ULw.1", "CorrelationVector": "K+XaipIQT9q9qZpxGA2ULw.1"]2021-05-11 17:53:38.971 INFO VerifiableCredential 0 TID=1 55 (fire()) ["File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift", "Line": "55", "Function": "fire()", "Message": "Correlation Vector for VCNetworking.FetchDIDDocumentOperation: K+XaipIQT9q9qZpxGA2ULw.2", "CorrelationVector": "K+XaipIQT9q9qZpxGA2ULw.2"]2021-05-11 17:53:40.017 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Function": "fire()", "Line": "55", "CorrelationVector": "K+XaipIQT9q9qZpxGA2ULw.3", "Message": "Correlation Vector for VCNetworking.FetchDIDDocumentOperation: K+XaipIQT9q9qZpxGA2ULw.3", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift"]2021-05-11 17:53:40.177 INFO VerifiableCredential 0 TID=1 55 (fire()) ["File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift", "Message": "Correlation Vector for VCNetworking.FetchWellKnownConfigDocumentOperation: K+XaipIQT9q9qZpxGA2ULw.4", "Line": "55", "CorrelationVector": "K+XaipIQT9q9qZpxGA2ULw.4", "Function": "fire()"]2021-05-11 17:53:40.959 ERRO VerifiableCredential 0 TID=1 177 (launchIssuanceFlow(from:)) Error: Error: VCNetworking.NetworkingError code: 2 Message: Failed to get the issuance request Properties: ["Line": "177", "Function": "launchIssuanceFlow(from:)", "Error": "Error: VCNetworking.NetworkingError code: 2", "CorrelationVector": "K+XaipIQT9q9qZpxGA2ULw.4", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/VerifiableCredentialWallet/ViewModel/RequestProcessorViewModel.swift", "Message": "Failed to get the issuance request"]2021-05-11 17:53:40.960 INFO VerifiableCredential 0 TID=1 141 (stopTrackCurrentMeasuredEvent()) DIDIssuanceRequest properties: ["DIDSource": "QRScanner", "CorrelationVector": "K+XaipIQT9q9qZpxGA2ULw.4", "HasFailed": "true", "DIDFirstTimeOnBoarding": "false"]2021-05-11 17:53:40.961 VERB VerifiableCredential 0 TID=1 261 (navigateUsing(navigationBlock:)) navigateUsing: view had appeared previously CorrelationVector: K+XaipIQT9q9qZpxGA2ULw.42021-05-11 17:53:40.981 VERB VerifiableCredential 0 TID=1 90 (configure()) Showing error page with invalidUrl details:Error: VCNetworking.NetworkingError code: 2 CorrelationVector: K+XaipIQT9q9qZpxGA2ULw.4

timcappalli commented 3 years ago

@ibLaunch can you provide a link to a live persistent environment? Unfortunately this log message doesn't help without knowing the environment.

ibLaunch commented 3 years ago

@timcappalli this is running on the local machine right now, exposed with ngrok. but if you suggest deploying to the cloud and test, we can do that.

ibLaunch commented 3 years ago

@timcappalli Please check here: https://creds.azurewebsites.net/

anarabanana commented 3 years ago

Hi @ibLaunch, did you find out what was the problem? I am having a similar one, although the error in Authenticator log is different:

2021-05-27 09:50:05.426 INFO VerifiableCredential 0 TID=1 55 (fire()) ["Line": "55", "Function": "fire()", "CorrelationVector": "rvW91tj9SRuktZzQ9ZZSiA.5", "Message": "Correlation Vector for VCNetworking.FetchContractOperation: rvW91tj9SRuktZzQ9ZZSiA.5", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/operations/NetworkOperation.swift"]
2021-05-27 09:50:06.338 ERRO VerifiableCredential 0 TID=1 44 (logNetworkingError(error:)) Error: nil Message: Networking Error: serverError(withBody: "{\"error\":{\"code\":\"DependencyFailure\",\"message\":\"Failed to sign digest\"}}") Properties: ["File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/Submodules/VerifiableCredential-SDK-iOS/VCNetworking/VCNetworking/failureHandlers/SimpleFailureHandler.swift", "Tag": "logNetworkingError(error:)", "Line": "44", "CorrelationVector": "rvW91tj9SRuktZzQ9ZZSiA.5", "Throwable": "nil", "ThrowableMessage": "", "Message": "Networking Error: serverError(withBody: \"{\\\"error\\\":{\\\"code\\\":\\\"DependencyFailure\\\",\\\"message\\\":\\\"**Failed to sign digest**\\\"}}\")"]
2021-05-27 09:50:06.345 ERRO VerifiableCredential 0 TID=1 177 (launchIssuanceFlow(from:)) Error: Optional(VCNetworking.NetworkingError.serverError(withBody: "{\"error\":{\"code\":\"DependencyFailure\",\"message\":\"Failed to sign digest\"}}")) Message: Failed to get the issuance request Properties: ["Throwable": "Optional(VCNetworking.NetworkingError.serverError(withBody: \"{\\\"error\\\":{\\\"code\\\":\\\"DependencyFailure\\\",\\\"message\\\":\\\"Failed to sign digest\\\"}}\"))", "File": "/Users/runner/work/1/s/PhoneFactor/VerifiableCredentialWallet/VerifiableCredentialWallet/ViewModel/RequestProcessorViewModel.swift", "CorrelationVector": "rvW91tj9SRuktZzQ9ZZSiA.5", "Message": "Failed to get the issuance request", "Line": "177", "Tag": "launchIssuanceFlow(from:)", "ThrowableMessage": "The operation couldn’t be completed. (VCNetworking.NetworkingError error 4.)"]

The request_uri returns a JWT and it is also reachable from the Authenticator device.

mahoekst commented 2 years ago

The credential in your request cannot be downloaded. When I looked at the request in jwt.ms I saw this https://beta.did.msidentity.com/v1.0/766a340d-4f5a-4190-a917-3e478a8c2a2c/verifiableCredential/contracts/MyFirstVC and that URI doesn't work

eiko0705 commented 2 years ago

Hey @anarabanana I'm seeing the same error. Did you find the way to resolve this?

mahoekst commented 2 years ago

@eiko0705 can you check if your credential is working by opening it in a browser for example? @anarabanana error is because the credential isn't working.

eiko0705 commented 2 years ago

I saw my credential in a browser. It seems to be working, but is it right? https://beta.did.msidentity.com/v1.0/2a84ee6e-d4ad-431c-b106-12b957b3a102/verifiableCredential/contracts/VerifiedCredentialExpert

And I got this error on the server: status: issuance_error, message: fetch_contract_error But I don't know what this error is meaning...