IdentityServer4 - How to Implement Impersonation

前端 未结 3 565
挽巷
挽巷 2021-02-04 12:28

I have a requirement of allowing our internal support users to impersonate our customer users.

I\'m currently using IdentityServer4, Implicit Flow and OIDC Client.

3条回答
  •  温柔的废话
    2021-02-04 12:50

    Probably wouldn't try to build an impersonation feature into the core IdentityServer4 libraries. You really just need a small data structure to hold your impersonated UserId and a service to check for that. It is a foundation feature that you application should be designed around.

    Also consider, you may need superuser features that still present themselves even though you are impersonating (e.g. un-impersonate).

提交回复
热议问题