KevinDockx / SecuringAspNetCore6WithOAuth2AndOIDC

Fully functioning finished sample code for my Securing ASP.NET Core 6 with OAuth2 and OpenID Connect course
MIT License
96 stars 62 forks source link

Marvin.IDP is not starting in final sample #1

Open dgxhubbard opened 1 year ago

dgxhubbard commented 1 year ago

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

KevinDockx commented 1 year ago

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!