SecuringAspNetCore6WithOAuth2AndOIDC icon indicating copy to clipboard operation
SecuringAspNetCore6WithOAuth2AndOIDC copied to clipboard

Marvin.IDP is not starting in final sample

Open dgxhubbard opened this issue 2 years ago • 1 comments

When I try to startup up Marvin.IDP in Finished Sample there is an exception:

Exception thrown: 'Azure.Identity.CredentialUnavailableException' in Azure.Security.KeyVault.Secrets.dll

which causes the IDP to shut down immediately

dgxhubbard avatar Jan 19 '23 16:01 dgxhubbard

Yep, that's expected behavior: the IDP stores secrets in Azure Keyvault, and those are not distributed together with the codebase. If you're following along with the course, you'll learn how to do that in the final module. If not, you can comment out the relevant parts (this line & following: https://github.com/KevinDockx/SecuringAspNetCore6WithOAuth2AndOIDC/blob/main/Finished%20sample/Marvin.IDP/HostingExtensions.cs#L34) and run the IDP with the developer signing credentials (.AddDeveloperSigningCredential).

Hope this helps!

KevinDockx avatar Jan 21 '23 07:01 KevinDockx