angular - Msal登录弹窗的定位
问题描述
我目前正在使用 msal-angular 的登录弹出窗口登录 Angular 应用程序的 Microsoft Office 帐户。但是,当弹出窗口出现时,它出现在屏幕的左上角,一半的窗口离开屏幕。因此,我必须手动调整它的大小以使其完全显示在屏幕上。
有没有办法改变这个弹出窗口的位置以出现在某个位置?例如,在从中调用它的浏览器窗口的中间?
我当前的弹出呼叫:
async signIn(): Promise<void> {
const result = await this.msalService.loginPopup(OAuthSettings.scopes)
.catch((reason) => {
console.log('Login failed', JSON.stringify(reason, null, 2));
});
if (result) {
this.authenticated = true;
}
}
解决方案
推荐阅读
- mongodb - 查询引用集合的最佳实践?
- arrays - 从字符串数组创建一个数组对象
- mongodb - Springboot如何连接mongodb聚合
- rpa - Web 表搜索并单击
- c# - 如何使用 C# 和 SslStream 类打开与 TLS 通道绑定的连接?
- linux - 如何在 Centos 7 中将 libtiff 更新到最新版本?
- python - While循环猜数
- python - 不能使用评估的计算器赋值。它给出了类型错误:“NoneType”对象在最后一个函数中不可迭代
- android - 使用来自 android studio 上 SQLite 的值更新 mysql Row
- docker - docker中的集群管理和编排有什么区别?