Awesome
MonoTouch.WAToolkit
This is a project attempting to port the Windows Phone 7 Windows Azure toolkit to MonoTouch. It supports authenticating against Windows Azure and can obtain a token response for usage with applications that require this.
How does it work?
The supplied sample briefly shows how to use the components. What happens in the code is:
-
Passing the realm and namespace to the
AccessControlLoginController
and pushing the view sends you to a list of Identity Providers to choose from. -
Choosing one of these Providers opens up a WebView with the providers Mobile Login Page.
-
The usual JavaScript Notify function, which is on the landing page which you get to after logging in, is overridden with JavaScript that redirects the WebView to another address.
-
The address contains the token, which an overridden WebViewDelegate method takes and saves in the Token Store.
-
Sends you back to your application
After you get back to your Controller, which pushed the LoginController, you can obtain the Token from RequestSecurityTokenResponseStore.Instance.RequestSecurityTokenResponse
License
This project is licensed under Apache 2.0