使用的UIWebView和MonoTouch的天青与ACS [英] Using UiWebView and Monotouch with Azure ACS

查看:209
本文介绍了使用的UIWebView和MonoTouch的天青与ACS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出如何在iPhone上使用的Azure ACS,通过MonoTouch的。它看起来像它应该有可能在合适的地址,只需简单一个UIWebView,让用户选择自己的IP,然后刊登广告登录。在此之后该cookie包含必需的信息。

I'm trying to figure out how to use Azure ACS on the iPhone, via Monotouch. It looks like it should be possible to simply point a UiWebView at the right address, let the user pick their IP, ad then sign in. After that the cookie should contain the required info.

获取NSHttpCookie并将其转化为System.Net.Cookie看起来很容易:
<一href=\"http://stackoverflow.com/questions/5097757/how-do-i-convert-an-nshttpcookie-to-a-system-net-cookie-in-monotouch\">How我做一个转换为NSHttpCookie在MonoTouch的一个System.Net.Cookie?

Getting the NSHttpCookie and translating it to a System.Net.Cookie looks easy: How do I convert an NSHttpCookie to a System.Net.Cookie in MonoTouch?

不过,我想不通的第一部分。我试着在管理控制台中的所有端点指向的UIWebView。他们中没有显示的IP地址。

However, I can't figure out the first part. I've tried pointing the UIWebView at all the Endpoints in the management console. None of them display the IPs.

我需要做一些中继第三方应用程序?也许,创建一个新的应用程序?有谁知道这些设置会是什么?这很容易让一个Azure的网站,但我无法弄清楚了一个移动应用程序。

Do I need to do something in the Relaying Party Applications? Perhaps create a new app? Does anyone know what the settings would be? It's easy for an Azure website, but I can't figure it out for a mobile app.

有没有人这样做呢?有任何想法吗?
太感谢了,
克里斯

Has anyone done this? Any ideas? Thanks a Million, Chris

推荐答案

这听起来像你有大部分的情况下工作,但我认为你正在寻找一个在错误的地方SWT。 ACS不会将SWT写入cookie的,而是由WS联合被动应对方式返回SWT,查找在响应体wresult参数。

it sounds like you have most of the scenario working, but I think you're looking for the SWT in the wrong place. ACS doesn't write the SWT to the cookie, rather it returns the SWT by way of a WS-Federation Passive response, look for the wresult parameter in the response body.

此外,这可能是对你有所帮助:

Also, this might be of help to you:

<一个href=\"http://www.wadewegner.com/2011/07/windows-azure-toolkit-for-ios-now-supports-the-access-control-service/\" rel=\"nofollow\">http://www.wadewegner.com/2011/07/windows-azure-toolkit-for-ios-now-supports-the-access-control-service/

这篇关于使用的UIWebView和MonoTouch的天青与ACS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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