-
-
Save pablopioli/93e0fe8b0d8a860957be709c0dc235e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.AddAuthentication(options => | |
{ | |
options.DefaultScheme = "Cookies"; | |
options.DefaultChallengeScheme = "oidc"; | |
}) | |
.AddCookie("Cookies") | |
.AddOpenIdConnect("oidc", options => | |
{ | |
options.Authority = "steam addess"; | |
options.ClientId = "given by steam"; | |
options.ResponseType = "code"; | |
options.UsePkce = true; | |
options.SaveTokens = true; | |
options.GetClaimsFromUserInfoEndpoint = true; | |
options.Scope.Clear(); | |
options.Scope.Add("openid"); | |
options.Scope.Add("profile"); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment