Using UiWebView and Monotouch with Azure ACS

自闭症网瘾萝莉.ら 提交于 2019-12-11 02:59:39

问题


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.

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?

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.

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


回答1:


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:

http://www.wadewegner.com/2011/07/windows-azure-toolkit-for-ios-now-supports-the-access-control-service/



来源:https://stackoverflow.com/questions/9122072/using-uiwebview-and-monotouch-with-azure-acs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!