skoruba / Duende.IdentityServer.Admin

The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
Apache License 2.0
542 stars 188 forks source link

Application logout doesn't support automatic redirect post signout, which Duende added a while back #226

Open omon77 opened 1 week ago

omon77 commented 1 week ago

Describe the bug

When application logs out, the application stays on STS's logged out page. Duende added support for redirecting the application to the configured/specified url a while back.

Looks like missed merges start with this options class: https://github.com/DuendeSoftware/IdentityServer/blob/e9860c6488f90e8fbc11a4452b9dd111dbfae933/hosts/main/Pages/Account/Logout/LogoutOptions.cs

Sample code: https://github.com/DuendeSoftware/Samples/blob/main/IdentityServer/v7/SessionManagement/IdentityServerHost/Pages/Account/Logout/LogoutOptions.cs And Logout action methods: https://github.com/DuendeSoftware/Samples/blob/main/IdentityServer/v7/SessionManagement/IdentityServerHost/Pages/Account/Logout/Index.cshtml.cs