[英]How to authenticate using Azure AD token using identity server 3 and microsoft teams app
We use custom idp (identity server 3) to authenticate users on the system.我们使用自定义 idp(身份服务器 3)对系统上的用户进行身份验证。 Now I have a requirement to implement Azure AD authentication.
现在我需要实现 Azure AD 身份验证。 I tried adding Azure AD as an external provider it is working fine on the browser, but on MS teams app, it is not working because the Microsoft teams app opens in an Iframe, on which azure Ad doesn't work.
我尝试将 Azure AD 添加为外部提供程序,它在浏览器上运行良好,但在 MS 团队应用程序上,它无法正常工作,因为 Microsoft 团队应用程序在 Iframe 中打开,ZCF04A02E37B774FC311A48F605 无法正常工作。 I implemented Microsoft msal.js library to authenticate using Azure AD.
我实现了 Microsoft msal.js 库以使用 Azure AD 进行身份验证。 I am able to authenticate and get the token on the frontend.
我能够在前端进行身份验证并获取令牌。 But how can I pass that token to identity server 3 and authenticate user using my own identity server.
但是如何将该令牌传递给身份服务器 3 并使用我自己的身份服务器对用户进行身份验证。
Did you have a look at these resources which seem to explain how to implement your setup:您是否查看过这些资源,这些资源似乎可以解释如何实现您的设置:
if I understand your requirement correctly then you can try out the below solution: User is authenticated using Azure Ad when he logs in to Teams App.如果我正确理解您的要求,那么您可以尝试以下解决方案:用户在登录 Teams 应用程序时使用 Azure 广告进行身份验证。 Now you can send the logged in user's AD information (User Principal Name preferably) to your IS3 and authenticate from your end.
现在您可以将登录用户的 AD 信息(最好是用户主体名称)发送到您的 IS3 并从您的端进行身份验证。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.