JayChase / Angular.Net.SecureStarter

An AngularJS starter kit for ASP.NET which implements authentication and authorization with ASP.NET Identity 2.0.0.
MIT License
18 stars 7 forks source link

Azure Active Directory Integration #2

Open johnkattenhorn opened 9 years ago

johnkattenhorn commented 9 years ago

This isn't an issue as such, just wanted to reach out to let you know that I've used the code here as a basis to hook up the new ADAL script from https://github.com/AzureAD/azure-activedirectory-library-for-js to allow me to access Azure AD.

I started by copying the skUserInfo.html and skUserInfo.js and security.js to new ones with an adal suffix.

I removed any function which were already handed by the adalAuthenticationService, it works just great but for some reason I don't yet understand the events raised by the adalAuthenicationService don't fire until I try to move away from the current page.

If this mod is interesting then let me know and I'll gladly fork and commit the work I did. The only change to the actual existing code base is that I swap out the current sk-user-info directive for an adal one.

PS. What does sk- stand for anyways ?

JayChase commented 9 years ago

The ADAL work that sounds really good. If it looks like there is a way of getting it into the main branch as a configurable option that could work too.