从site1以相同用户身份打开site2的前台页面。

huangapple go评论68阅读模式
英文:

IdentityServer: Open site2 front page from site1 with the same user

问题

我有一个SPA应用程序,使用.NET Core和Angular,还有Identity Server/OpenID Connect身份验证。我需要能够从site1页面打开另一个应用程序。用户是相同的,但客户端ID不同。类似这样的情况:
从site1以相同用户身份打开site2的前台页面。

这是否可行?我正在考虑这个选项,但不确定它是否适用于我的情况:https://identityserver4.readthedocs.io/en/latest/topics/extension_grants.html?highlight=delegation#extension-grants

英文:

I have an spa application .net core/angular and Identity server/Open IdConnect authentication. I have to be able to open another application from the site1 page. The user is the same but client id's are different. Something like this:
从site1以相同用户身份打开site2的前台页面。

Is it possible to do it? I'm looking at this option but not sure whether it will work for me: https://identityserver4.readthedocs.io/en/latest/topics/extension_grants.html?highlight=delegation#extension-grants

答案1

得分: 1

你可能不想将网站2重定向到登录界面,是吗?否则,默认情况下它应该已经工作。
您可以考虑在网站2上使用JWT身份验证,只需从网站1获取JWT,将网站2视为API资源而不是UI网站。

英文:

You probably don't want to redirect to the login screen for site2, I assume? Otherwise it would already work by default.
You could consider using JWT authentication for site2 and just retrieve a JWT from site1, considering site2 to be an API resource rather than a UI website.

huangapple
  • 本文由 发表于 2023年7月3日 14:28:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/76602295.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定