Use OpenIddict from the tiered MVC client

pull/12624/head
Halil İbrahim Kalkan 4 years ago
parent b837648472
commit 389f57d080

@ -148,12 +148,13 @@ public class MyProjectNameWebModule : AbpModule
options.ResponseType = OpenIdConnectResponseType.CodeIdToken;
options.ClientId = configuration["AuthServer:ClientId"];
options.ClientSecret = configuration["AuthServer:ClientSecret"];
options.UsePkce = true;
options.SaveTokens = true;
options.GetClaimsFromUserInfoEndpoint = true;
options.SignOutScheme = "Cookies";
options.Scope.Add("role");
options.Scope.Add("roles");
options.Scope.Add("email");
options.Scope.Add("phone");
options.Scope.Add("MyProjectName");

@ -13,8 +13,7 @@
"AuthServer": {
"Authority": "https://localhost:44301",
"RequireHttpsMetadata": "true",
"ClientId": "MyProjectName_Web",
"ClientSecret": "1q2w3e*"
"ClientId": "MyProjectName_Web"
},
"StringEncryption": {
"DefaultPassPhrase": "gsKnGZ041HLL4IM8"

Loading…
Cancel
Save