[英]Flutter mobile app login via azure Active directory from web app that already implemented Azure Ad
I have a web app that already configured with Azure Ad, once user login the web app via azure ad, they web app will redirect it to identity server and then successfully logged in to the website. I have a web app that already configured with Azure Ad, once user login the web app via azure ad, they web app will redirect it to identity server and then successfully logged in to the website. However, currently we have to implement the azure ad login in our flutter app also.但是,目前我们还必须在我们的 flutter 应用程序中实现 azure 广告登录。 For calling the web app API, we have to get access token generated from the web app identity server.为了调用 web 应用程序 API,我们必须获取从 web 应用程序身份服务器生成的访问令牌。 So the problem is that is there a solution to directly allow my mobile app to login through the azure ad page configured for my web app and get access token directly in my flutter app?所以问题是有没有一种解决方案可以直接允许我的移动应用程序通过为我的 web 应用程序配置的 azure 广告页面登录并直接在我的 flutter 应用程序中获取访问令牌? Or is there other suggestions?还是有其他建议?
Retrieving access token directly from the web api through AAD identity authentication and passing it to the flutter app for authentication purposes isn't possible.通过 AAD 身份验证直接从 web api 检索访问令牌并将其传递给 flutter 应用程序进行身份验证是不可能的。 Though, you can add/show a redirect URL or callback url link to the flutter app in your web app display api which is registered in azure app registration portal such that when a user tries to log in to flutter app, it will be redirected to the flutter app site and in the flutter app backend, you can configure it to federate with AAD for authentication and authorization purpose. Though, you can add/show a redirect URL or callback url link to the flutter app in your web app display api which is registered in azure app registration portal such that when a user tries to log in to flutter app, it will be redirected to flutter 应用程序站点和 flutter 应用程序后端,您可以将其配置为与 AAD 联合以进行身份验证和授权。
References:参考:
You can also raise a support request if needed via overview page in portal> support + troubleshooting >new support request如果需要,您还可以通过门户中的概览页面提出支持请求> 支持 + 故障排除 > 新的支持请求
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.