Warning: Deprecated!!!
Please use https://github.com/benbaran/adal-angular4 which has already been merged into angular 6.
This repository lives only as my personal documentation on how to do a naive migration.
adal-angular6
Angular 6 Active Directory Authentication Library (ADAL) wrapper package. Can be used to authenticate Angular 6 applications to Azure Active Directory.
Based on https://github.com/grumar/adal-angular5 Which is based on https://github.com/benbaran/adal-angular4
How to use it
IMPORTANT!
Don't use Http
and HttpModule
, You definitely must use HttpClient
and HttpClientModule
instead of them.
The new interceptor is used only for request made by HttpClient
.
When old Http
used request will be untouched (no authorization header).
In app.module.ts
;... imports: , // important! HttpClientModule replaces HttpModule providers:
Example
;...