英文:
IdentityServer: Open site2 front page from site1 with the same user
问题
我有一个SPA应用程序,使用.NET Core和Angular,还有Identity Server/OpenID Connect身份验证。我需要能够从site1页面打开另一个应用程序。用户是相同的,但客户端ID不同。类似这样的情况:
这是否可行?我正在考虑这个选项,但不确定它是否适用于我的情况: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:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论