Skip to content

Instantly share code, notes, and snippets.

@pablopioli
Created May 27, 2020 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pablopioli/93e0fe8b0d8a860957be709c0dc235e4 to your computer and use it in GitHub Desktop.
Save pablopioli/93e0fe8b0d8a860957be709c0dc235e4 to your computer and use it in GitHub Desktop.
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