Home > Blockchain >  Error Code: ForbiddenException http status: Unable to access KeyVault resource with given credential
Error Code: ForbiddenException http status: Unable to access KeyVault resource with given credential

Time:06-09

I am trying to implement the Azure Verifiable Credentials demo https://docs.microsoft.com/en-us/azure/active-directory/verifiable-credentials/verifiable-credentials-configure-tenant, however, already after scanning the QR generated in the demo app, which I registered in my Azure Active Directory, I get that I do not have access to the KeyVault resource, when I enabled all access permissions.

Does anyone have any idea what could be generating this error?

Verifiable Credentials Expert Issuance Error code

CodePudding user response:

To resolve 403 Forbidden error, please check whether you have given required permissions.

Make sure to give permissions like below:

Key permissions: Get, List, Create, Import, Verify and Sign

Secret permissions: Get, list and Set

enter image description here

Otherwise, check whether firewall policy is enabled or not.

  • If enabled, try adding the IP address of your Azure App Service to the Key Vault to make it work.

To know the exact reason behind the error try turning on Azure Key Vault logging that will give you the reason behind the error.

Please refer below links for more information:

REST API error codes - Azure Key Vault | Microsoft Docs

Issue your own Verifiable Credentials | Decentralized Identity Developer Docs (didproject.azurewebsites.net)

CodePudding user response:

In KeyVault add an Access Policy for service principal "Verifiable Credentials Service Request" and give it Key Permissions Get, Sign and save that policy

  • Related