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.
- 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
- Run
npm install
- Run
npm start
Use 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
- Tests/CI