本文介紹了我可以通過 Microsoft LiveID 帳戶“安靜地"登錄嵌入式 PowerApp 嗎?的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
限時(shí)送ChatGPT賬號(hào)..
我的 PowerApps 應(yīng)用程序有一個(gè) Web 應(yīng)用程序包裝器(我已將它作為 iframe 嵌入到我的 ASP.NET Core 應(yīng)用程序的主頁上).我還擁有開發(fā)此應(yīng)用程序并有權(quán)訪問它的 Azure 組織的憑據(jù).因此,我的內(nèi)置應(yīng)用程序第一次要求輸入電子郵件和密碼才能登錄 Microsoft 帳戶.而且只有登錄成功后才能直接使用.
但這不是我想要的.
我希望在加載此頁面時(shí)能夠使用該應(yīng)用程序.
那么,有沒有辦法不用登陸微軟賬號(hào)直接使用應(yīng)用呢?
我想到了向 Azure AD API 發(fā)出請求并從那里獲取不記名令牌或 cookie,然后將其保存到客戶端,據(jù)說填寫登錄表單并單擊登錄按鈕,但安靜地".老實(shí)說,我不知道我該怎么做.我花了幾個(gè)小時(shí)研究這個(gè)問題,但沒有找到合適的解決方案.
你能幫幫我嗎?
先感謝您!
解決方案
使用
Http 請求
Http 響應(yīng)
相關(guān)帖子:
有沒有辦法提高M(jìn)SAL-browser js登錄的性能?
I have a web app wrapper for my PowerApps app (I have embedded it as an iframe on the home page of my ASP.NET Core app). I also have the credentials of the Azure organization that developed this application and has access to it. So, for the first time, my built-in app asks for an email and password to sign in to a Microsoft account. And only after a successful login, I can work with it directly.
But that's not what I want.
I expect to be able to work with the application when I load this page.
So, is there a way to use the app directly without signing in to a Microsoft account?
I got the idea to make a request to the Azure AD API and get a bearer token or cookie from there, and then save it to the client, supposedly filling out a login form and clicking the login button, but "quietly". To be honest, I don't know how I can do this. I've spent hours researching this problem, but haven't found a suitable solution.
Could you help me?
Thank you in advance!
解決方案
Use ROPC flow, you just need to send a http request, then get the response.
There will be no pop-ups requiring you to log in.
Tips:
Http Request
Http Response
Related Posts:
Is there a way to improve the performance of MSAL-browser js login?
這篇關(guān)于我可以通過 Microsoft LiveID 帳戶“安靜地"登錄嵌入式 PowerApp 嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!