# AUTH-ANGULAR

[![Build Status](https://travis-ci.org/zixia/auth-angular.svg?branch=master)](https://travis-ci.org/zixia/auth-angular)
[![NPM Version](https://badge.fury.io/js/auth-angular.svg)](https://www.npmjs.com/package/auth-angular)
[![Greenkeeper badge](https://badges.greenkeeper.io/Chatie/wechaty.svg)](https://greenkeeper.io/)

The Authing Service/Provider for Angular

![Auth Angular Logo](https://zixia.github.io/auth-angular/images/auth-angular-logo.png)
> Picture Credit: [Angular 5 Authentication](https://www.genuitec.com/angular-5-authentication/)

![Angular NgModule](https://zixia.github.io/auth-angular/images/ngmodule-logo.png)

## FEATURES

1. [Auth0](https://auth0.com/) compatible.
1. [Authing](https://authing.cn/) compatible.
1. RxJS Observable as the first class pattern.
1. Out-Of-Box support for Angular Dependence Injection.

## TODO

- [ ] Make all parameter to Auth0 as the options of AuthModule.forRoot(options)

## RESOURCES

### Token

- [id_token v.s. access_token](https://auth0.com/docs/api-auth/why-use-access-tokens-to-secure-apis)
- [Refresh Tokens: When to Use Them and How They Interact with JWTs](https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/)

### Auth0

- [Auth0 Lock v11 for Web](https://auth0.com/docs/libraries/lock/v11)
- [Auth0 Playground](https://auth0.github.io/lock-passwordless/)

### Ionic & Angular

- [Auth0 Ionic2 Quick Start](https://auth0.com/docs/quickstart/native/ionic2)
- [Ionic 2 and Auth0(outdated: v0.9)](http://blog.ionic.io/ionic-2-and-auth0/)
- [Experimenting With Auth0 Passwordless Email Authentication In Angular 2.4.1](https://www.bennadel.com/blog/3207-experimenting-with-auth0-passwordless-email-authentication-in-angular-2-4-1.htm)
- [OpenID Standard Claims](https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims)
- [Server + API Architecture Scenario](https://auth0.com/docs/architecture-scenarios/application/server-api)
- [Verify Access Tokens](https://auth0.com/docs/api-auth/tutorials/verify-access-token)
- ~~[Auth0 + Scaphold](https://scaphold.io/community/questions/scaphold-social-login/)~~

## CHANGELOG

### v0.4 May 2018

1. Upgrade RxJS version from 5 to 6

### v0.2 Apr 9, 2018

1. CI by Travis & CD to NPM

### v0.0 Apr 8, 2018

1. Promote this module as a SOLO NPM module [auth-angular](https://www.npmjs.com/package/auth-angular) from [@chatie/app](https://github.com/Chatie/app)
1. Clean Auth0 Code
1. Clean RxJS Code

## AUTHOR

[Huan LI](http://linkedin.com/in/zixia) \<zixia@zixia.net\>

<a href="https://stackexchange.com/users/265499">
  <img src="https://stackexchange.com/users/flair/265499.png" width="208" height="58" alt="profile for zixia on Stack Exchange, a network of free, community-driven Q&amp;A sites" title="profile for zixia on Stack Exchange, a network of free, community-driven Q&amp;A sites">
</a>

## COPYRIGHT & LICENSE

* Code & Docs © 2018 Huan LI \<zixia@zixia.net\>
* Code released under the Apache-2.0 License
* Docs released under Creative Commons
