Linkedin 身份验证取消工作流打开新选项卡而不是在同一页面中重定向
Linkedin authentication cancel workflow opens new tab instead of redirect in same page
我正在尝试将 LinkedIn 集成到我的 angular 2.x 应用程序中。我在哪里使用弹出窗口来验证用户。为了成功登录,通过将数据发回父级来完美地工作。但是对于取消或失败,linkedin 正在打开一个新选项卡并关闭原始弹出窗口,这不是预期的。
任何人都可以指导解决这个问题。
代码示例:
const url = `https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=${clientId}&redirect_uri=http://localhost:4200/linkedin/callback&state=987654321&scope=r_basicprofile`;
this.windowHandle = window.open(url, 'linkedin login', 'height=600,width=550');
这个问题好像是LinkedIn本身的问题。如果用户取消授权,LinkedIn 好像关闭了window。
请参阅 this 了解更多详情。
我正在尝试将 LinkedIn 集成到我的 angular 2.x 应用程序中。我在哪里使用弹出窗口来验证用户。为了成功登录,通过将数据发回父级来完美地工作。但是对于取消或失败,linkedin 正在打开一个新选项卡并关闭原始弹出窗口,这不是预期的。
任何人都可以指导解决这个问题。
代码示例:
const url = `https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=${clientId}&redirect_uri=http://localhost:4200/linkedin/callback&state=987654321&scope=r_basicprofile`;
this.windowHandle = window.open(url, 'linkedin login', 'height=600,width=550');
这个问题好像是LinkedIn本身的问题。如果用户取消授权,LinkedIn 好像关闭了window。 请参阅 this 了解更多详情。