-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClientID vs SecretID #31119
Comments
Are you sure it wasn't by adding ... services.AddAuthorizationCore(); ... and I think that's unrelated to this article. I'll make a note to check on the |
Sorry I am not sure exactly I added to fix it. This is all a bit new to me so I resorted to Google and just started copying things in. I don't have
|
We'll have a new sample app and article to cover this scenario. It's tracked by #30994. I don't have an exact ETA for that coverage, but I think it will be within in the next couple of weeks. |
Tracked in #30994 |
Description
I just want to highlight that when I was following this page I got stuck because I created a secret in Azure and it gave me a Secret ID and a Secret Value. I thought the Secret ID was the same as the Client ID so got stuck... It turns out you only need the "Value" from the Secret page and the Client ID is on front page of the App Registration - I feel this could be made a bit clearer in the tutorial.
I also had an issue when following the guide where this error would appear on startup:
An unhandled exception occurred while processing the request. InvalidOperationException: Cannot provide a value for property 'AuthorizationPolicyProvider' on type 'Microsoft.AspNetCore.Components.Authorization.AuthorizeRouteView+AuthorizeRouteViewCore'. There is no registered service of type 'Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider'.
This wasn't covered in the tutorial so I had to google, I think I eventually solved it by adding
builder.Services.AddServerSideBlazor();
although not 100% sure.Thank you!
Page URL
https://learn.microsoft.com/en-us/aspnet/core/security/authentication/social/microsoft-logins?view=aspnetcore-8.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authentication/social/microsoft-logins.md
Document ID
ce69b990-0b4c-abda-cd2d-68f85cd8031e
Article author
Rick-Anderson
The text was updated successfully, but these errors were encountered: