Angular 2/4 ADAL Quickstart
An Angular quickstart with ng2-adal (a module based on angular2-adal) plugged in.
If this doesn't work with Angular 2, you can find an example for it on the Angular2 branch.
This repository has been updated to use Angular v4 and ng2-adal v2.0.0. Since there were no tests written for the quickstart example, I have removed them - you can integrate your own testing framework.
How to Use
- Rename app/services/secret.service.ts.template to app/services/secret.service.ts and add your tenant and client ID.
- Remove secret.service.ts from .gitignore
Getting Token as a String
services/auth.service.ts. This token needs to be passed as a header for REST service authentication.
I am not actively maintaining this repository (although, I will update it once in a while in case of breaking changes in the library or a major update).
If you're interested in contributing, do raise an issue/PR and have a look at the CONTRIBUTING.md.
Here's what you could help me do:
- Webpack integration
- Gulp/Grunt/Bower integration