I've set up a MVC application and the IdentityServer as desribed in the quickstarts. I also use EFCore to persist the confiuration and grants.
Everything works fine, even the Windows authentication.
When I logout from my MVC app using
public async Task Logout()
{
await HttpContext.Authentication.SignOutAsync("Cookies");
await HttpContext.Authentication.SignOutAsync("oidc");
}
I'm logged out as expected.
But when I login again, enter my credentials and click "Login" the next page asking for the permission grants, again. But why? I already set the permissions on my first login. How can I avoid that?
This can be very annoying if I try to implement a SSO using Windows authentification.
Does this problem means that the grants won't be persisted and read from the database?
Found the same problem here
IdentityServer4 not considering PersistedGrants store (user_consent in particular)
So he already opened an issue https://github.com/IdentityServer/IdentityServer4/issues/928
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With