Master branch of this repo is now :angular 4" compatible. Thanks to @Cyberdada. For Angular2, I have created separate branch "Angular 2". NPM package is still on Angular 2 and I will be publishing angular 4 package soon.
To do authentication against Microsoft Windows Azure AD, using the Microsoft ADAL library underneath. Note this library is extracted from the adal-angular package.
This also provide AuthHttp class, which actually gets token in background for external webapis.
NPM Package: https://www.npmjs.com/package/ng2-adal
Example and guideline: https://github.com/ranveeraggarwal/ng2-adal-QuickStart
Pop-Up example : https://github.com/mazhisai/ng2-adal-QuickStart