net core / IdentityServer : unable to logout
Solution 1:
To redirect back to your client app after logout from IDS4 by clicking link Click here to return to the Interactive client ....
, you should set correct PostLogoutRedirectUris
in client configuration :
new Client
{
....
// where to redirect to after logout
PostLogoutRedirectUris = { "http://localhost:5002/signout-callback-oidc" },
....
},
In article from @McGuireV10 , he is using the identity server's demo server for testing , and use interactive.confidential.short
client , you can't set that client's PostLogoutRedirectUris
, so it will be https://localhost:5001/signout-callback-oidc
by default . You can set your own identity server to test the scenario .