ng2-adal-popup-fork (https://travis-ci.org/salemdar/angular2-cookie)
Use Azure AD Library - ADAL in Angular 2 v0.0.2
Upgraded to Angular2 release candidates.
Table of contents:
Example
A complete example can be found on GitHub.
Get Started
Installation
You can install this package locally with npm.
# To get the latest stable version and update package.json file: npm install ng2-adal --save
After installing the library, you need to include ng2-adal and adal in the SystemJS configurations.
/** * System configuration for Angular 2 application */ { // map tells the System loader where to look for things var map = 'app': 'app' '@angular': 'lib/@angular' 'angular2-in-memory-web-api': 'lib/angular2-in-memory-web-api' 'rxjs': 'lib/rxjs' 'angular2-cookie': 'lib/angular2-cookie' 'ng2-adal': 'lib/ng2-adal' 'adal': 'lib/adal-angular/lib' ; // packages tells the System loader how to load when no filename and/or no extension var packages = 'app': main: 'main.js' defaultExtension: 'js' 'rxjs': defaultExtension: 'js' 'angular2-in-memory-web-api': defaultExtension: 'js' 'angular2-cookie': main: 'core.js' defaultExtension: 'js' 'ng2-adal': main: 'core.js' defaultExtension: 'js' 'adal': main: 'adal.js' defaultExtension: 'js' ; var ngPackageNames = 'common' 'compiler' 'core' 'http' 'platform-browser' 'platform-browser-dynamic' 'router' 'router-deprecated' 'upgrade' ; // Add package entries for angular packages ngPackageNames; var config = map: map packages: packages ; System;}this;
To enable building TypeScript, you need to add ADAL library definitions to typings/index.d.ts.
/// /// ///
Usage
to be done...
AdalService
to be done...