I have a number of web services created using Microsoft MVC4 Web Api and protected using WIF and Windows Azure Active Directory (WAAD) using WS-Fed.
I also have a pure HTML5/Javascript single page application (SPA) client that needs to access these web api's.
Are there any known samples/libraries in Javascript for handling the interactions with WAAD to
- Determine if the user is already logged in.
- Log in the user and obtain a security token if required
- Log out once interaction is finished.
If not, are there any recommended links to the documentation required to implement something like that.