Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission grant page will always be shown when using IdentityServer4

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?

like image 796
Toni Wenzel Avatar asked Dec 27 '25 20:12

Toni Wenzel


1 Answers

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

like image 155
Toni Wenzel Avatar answered Dec 30 '25 23:12

Toni Wenzel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!