我可以通过 Microsoft LiveID 帐户“安静地"登录嵌入式 PowerApp 吗?

Could I sign into embedded PowerApp via Microsoft LiveID Account quot;quietlyquot;?(我可以通过 Microsoft LiveID 帐户“安静地登录嵌入式 PowerApp 吗?)
本文介绍了我可以通过 Microsoft LiveID 帐户“安静地"登录嵌入式 PowerApp 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述



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

但这不是我想要的.

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

那么,有没有办法不用登陆微软账号直接使用应用呢?
我想到了向 Azure AD API 发出请求并从那里获取不记名令牌或 cookie,然后将其保存到客户端,据说填写登录表单并单击登录按钮,但安静地".老实说,我不知道我该怎么做.我花了几个小时研究这个问题,但没有找到合适的解决方案.

你能帮帮我吗?
先感谢您!

解决方案

使用

Http 请求

Http 响应

相关帖子:

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

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

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
Parameter count mismatch with Invoke?(参数计数与调用不匹配?)
How to store delegates in a List(如何将代表存储在列表中)
How delegates work (in the background)?(代表如何工作(在后台)?)
C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)
Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)