簡體   English   中英

Flutter 移動應用程序登錄通過 azure 來自 web 應用程序的活動目錄已實現 Z3A580F142203677F15ZF0BC088633

[英]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. 但是,目前我們還必須在我們的 flutter 應用程序中實現 azure 廣告登錄。 為了調用 web 應用程序 API,我們必須獲取從 web 應用程序身份服務器生成的訪問令牌。 所以問題是有沒有一種解決方案可以直接允許我的移動應用程序通過為我的 web 應用程序配置的 azure 廣告頁面登錄並直接在我的 flutter 應用程序中獲取訪問令牌? 還是有其他建議?

通過 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 flutter 應用程序站點和 flutter 應用程序后端,您可以將其配置為與 AAD 聯合以進行身份驗證和授權。

參考:

  1. flutter_aad_oauth
  2. 如何在 flutter 應用程序中集成 Azure AD SSO

如果需要,您還可以通過門戶中的概覽頁面提出支持請求> 支持 + 故障排除 > 新的支持請求

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM