第二个使用WebAuthenticationBroker获取单点登录数据的应用程序 [英] Second application to acquire Single Sign On data using WebAuthenticationBroker

查看:79
本文介绍了第二个使用WebAuthenticationBroker获取单点登录数据的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在编写一个Metro应用程序类库,它可以跨多个实例提供单点登录功能。


在实际实现类库之前,我在两个Metro应用程序中试验了WebAuthenticationBroker。


在第一个应用程序中,我使用带有选项"None"的代理,向服务提供者传递一个ms-app://的重定向回调网址来自此应用程序,并成功获得了返回数据。


但是在第二个应用程序中使用相同的代码,仍然会出现包含服务提供者登录页面的对话框,需要输入凭据才能登录,所以我尝试使用选项"Slient"而不是"无"。这个时间没有UI
,但是我在代理的行上得到了一个超时异常,我想这是因为虽然没有UI,但是底层页面停留在登录页面,等待凭据输入,导致该行超时


我不清楚的是,当一个实例成功登录时,如何在不显示UI的情况下在第二个实例中获取登录数据? / p>

非常感谢。

解决方案

由于您有两个应用程序,因此无法使用静默模式。他们两个都必须第一次显示登录窗口。


Hi,

I'm writing a Metro application class library that provides Single Sign-On capablities across multiple instances.

Before actually implementing the class library, I experimented with WebAuthenticationBroker in two of the Metro applications.

In the first application, I used the broker with options "None", passing the service provider a redirect callback url of ms-app:// got from this application, and successfully got the return data.

But using the same piece of code in the second application, the dialogbox containing the login page from the service provider still appears, requiring typing the credentials to login, so I tried to use the option "Slient" instead of "None". There's no UI this time, but I get a timeout exception at the line of the broker, I guess it's that although there's no UI, the underlying page stays at the login page, waiting for credential input, causing the line to time out.

The thing I'm not clear is that, when one instance successfully logs in, how do I get the login data in a second instance, without displaying the UI?

Thanks a lot.

解决方案

Since you have two applications you cannot have one in silent mode. Both of them have to display the login window the first time.


这篇关于第二个使用WebAuthenticationBroker获取单点登录数据的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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