Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Angular2 to authenticate against Azure AD

I am using Angular2 and want to authenticate the user against an Azure AD. I found ADALjs but they cater for Angular1 only, I also found this https://www.npmjs.com/package/angular2-adal#adalService, but this seems still in the initial stages. What is the best path I can take to implement this, can someone provide a working example.

like image 372
user3547774 Avatar asked Jul 21 '16 05:07

user3547774


1 Answers

This answer is probably super late, but since you asked for an example, I have modified the latest Angular 2 Quickstart and integrated ADAL into it, here: https://github.com/ranveeraggarwal/ng2-adal-QuickStart

It also has routing and protected routing.

This uses systemjs and I am yet to find a webpack-based solution.

like image 54
Ranveer Avatar answered Sep 20 '22 17:09

Ranveer