Skip to content
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

Authentication scheme configuration #32941

Open
chrisdrobison opened this issue Jun 26, 2024 · 0 comments
Open

Authentication scheme configuration #32941

chrisdrobison opened this issue Jun 26, 2024 · 0 comments

Comments

@chrisdrobison
Copy link

Description

Buried in the Blazor docs is this:

Authentication scheme configuration is automatically read from builder.Configuration["Authentication:Schemes:{SCHEME NAME}:{PropertyName}"], where the {SCHEME NAME} placeholder is the scheme, which is MicrosoftOidc by default. Because configuration is preconfigured, a client secret can automatically be read via the Authentication:Schemes:MicrosoftOidc:ClientSecret configuration key. On the server using environment variables, name the environment variable Authentication__Schemes__MicrosoftOidc__ClientSecret:

This should be placed more prominently in some section in the authentication docs.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/security/authentication/?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authentication/index.md

Document ID

48e4e204-ea22-c225-0cbc-0d811bdb90ed

Article author

@mjrousos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant