Compare commits
4
Commits
1.79.0
..
9977cf27b9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9977cf27b9 | ||
|
|
cf7eed0603 | ||
|
|
8e9ac1e1ad | ||
|
|
fa79bd8021 |
@@ -30,6 +30,8 @@ public static class Api
|
||||
|
||||
options.ClientId = authOptions.ClientId;
|
||||
options.ClientSecret = authOptions.ClientSecret;
|
||||
options.SignedOutCallbackPath = "/signout-callback-oidc";
|
||||
options.SignedOutRedirectUri = "/";
|
||||
|
||||
options.ResponseType = "code";
|
||||
options.SaveTokens = true;
|
||||
@@ -39,6 +41,16 @@ public static class Api
|
||||
options.Scope.Add("openid");
|
||||
options.Scope.Add("profile");
|
||||
options.Scope.Add("email");
|
||||
|
||||
options.Events = new OpenIdConnectEvents
|
||||
{
|
||||
OnRedirectToIdentityProviderForSignOut = context =>
|
||||
{
|
||||
context.ProtocolMessage.PostLogoutRedirectUri = context.Properties.RedirectUri;
|
||||
|
||||
return Task.CompletedTask;
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
return services;
|
||||
|
||||
Reference in New Issue
Block a user