Browse Source
Remove `SignOutScheme` of `OpenIdConnect`.
pull/13484/head
maliming
4 years ago
No known key found for this signature in database
GPG Key ID: 96224957E51C89E
2 changed files with
4 additions and
9 deletions
-
modules/openiddict/app/OpenIddict.Demo.Client.Mvc/Program.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web.Host/MyProjectNameWebModule.cs
|
|
|
@ -19,19 +19,15 @@ builder.Services.AddAuthentication(options => |
|
|
|
.AddOpenIdConnect("oidc", options => |
|
|
|
{ |
|
|
|
options.Authority = "https://localhost:44301/"; |
|
|
|
options.RequireHttpsMetadata = true; |
|
|
|
options.ResponseType = OidcConstants.ResponseTypes.Code; |
|
|
|
|
|
|
|
options.ClientId = "AbpApp"; |
|
|
|
options.ClientSecret = "1q2w3e*"; |
|
|
|
|
|
|
|
options.RequireHttpsMetadata = true; |
|
|
|
options.GetClaimsFromUserInfoEndpoint = true; |
|
|
|
options.SaveTokens = true; |
|
|
|
|
|
|
|
options.UsePkce = true; |
|
|
|
|
|
|
|
options.ResponseType = OidcConstants.ResponseTypes.Code; |
|
|
|
|
|
|
|
options.SignOutScheme = "Cookies"; |
|
|
|
options.SaveTokens = true; |
|
|
|
options.GetClaimsFromUserInfoEndpoint = true; |
|
|
|
|
|
|
|
options.Scope.Add("email"); |
|
|
|
options.Scope.Add("roles"); |
|
|
|
|
|
|
|
@ -153,7 +153,6 @@ public class MyProjectNameWebModule : AbpModule |
|
|
|
options.UsePkce = true; |
|
|
|
options.SaveTokens = true; |
|
|
|
options.GetClaimsFromUserInfoEndpoint = true; |
|
|
|
options.SignOutScheme = "Cookies"; |
|
|
|
|
|
|
|
options.Scope.Add("roles"); |
|
|
|
options.Scope.Add("email"); |
|
|
|
|