Architecture - External provider revoking access #497
Unanswered
GoldSloth
asked this question in
IdentityServer
Replies: 1 comment
-
|
That is a great question, and would be curious to see what others on the Duende Community think. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are replacing our existing identity system to support both local login and external providers (e.g. Microsoft SSO).
A key requirement for us is revocation of access, which we can achieve via
IProfileServiceon our IdentityServer on our side. We would also like revocation of access to the external provider to trickle down to our applications too.For example, if one of our clients needs to urgently revoke access to a Microsoft account, we would like our application to also revoked access soon after.
Our strategy to achieve this is to set the
idsrvcookie to expire soon after they authenticate if they use an external provider, so the next time they get sent to IdentityServer they get sent along to Microsoft rather than re-authenticating with the local cookie. However, this approach means they need to re-enter their email address in the login form every time.Our login page does home realm discovery by taking the username and showing either local login or redirecting to an external provider depending on the user record. One of our applications send the
login_hintparameter and redirect to the correct login method accordingly, so don't require the user to re-enter their email address.A few solutions we've thought of:
I would be interested if anyone has dealt with this scenario before and could share how they approached it. Is it common to send the user back to the external provider so frequently, or are we approaching this the wrong way? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions