我可以通过Microsoft LiveID帐户“安静地"登录嵌入式PowerApp吗? [英] Could I sign into embedded PowerApp via Microsoft LiveID Account "quietly"?

查看:52
本文介绍了我可以通过Microsoft LiveID帐户“安静地"登录嵌入式PowerApp吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我为PowerApps应用程序提供了一个Web应用程序包装器(我将其作为iframe嵌入到ASP.NET Core应用程序的主页中).我还拥有开发此应用程序并可以访问它的Azure组织的凭据.因此,我的内置应用程序首次要求输入电子邮件和密码才能登录到Microsoft帐户.只有成功登录后,我才能直接使用它.

但这不是我想要的.

我希望能够在加载此页面时使用该应用程序.

因此,有没有一种方法可以直接使用该应用程序而无需登录Microsoft帐户?
我想到了向Azure AD API发出请求并从那里获取承载令牌或cookie,然后将其保存到客户端的方法,应该填写一个登录表单并单击登录"按钮,但要安静".老实说,我不知道该怎么做.我已经花了数小时研究这个问题,但没有找到合适的解决方案.

你能帮我吗?
先感谢您!

解决方案

使用

Http请求

Http响应

相关文章:

有没有办法提高MSAL浏览器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?

这篇关于我可以通过Microsoft LiveID帐户“安静地"登录嵌入式PowerApp吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆