IMPORTANT - THIS IS A TEMP PACKAGE THAT WILL BE UNPUBLISHED TOMORROW (21st June)
angular-auth-oidc-client
OpenID Connect Implicit Flow
Features
- Angular 4 onwards
- Supports OpenID Implicit Flow http://openid.net/specs/openid-connect-implicit-1_0.html
- Complete client side validation for REQUIRED features
- OpenID Connect Session Management 1.0 http://openid.net/specs/openid-connect-session-1_0.html
- AOT build
- Can be lazy loaded
Documentation : Quickstart | API Documentation | Changelog
Using the package
Add the npm package to your package.json
"angular-auth-oidc-client": "0.0.10"
Using in the angular application
Import the module and services in your module. Set the AuthConfiguration properties to match the server configuration. At present only the id_token token flow is supported.
; ;
Create the login, logout component and use the oidcSecurityService
constructorpublic oidcSecurityService: OidcSecurityService ngOnInit login refreshSession logout
In the http services, add the token to the header using the oidcSecurityService
private setHeaders
Example using:
https://github.com/damienbod/angular-auth-oidc-sample-google-openid
Notes:
This npm package was created using the https://github.com/robisim74/angular-library-starter from Roberto Simonetti.
License
MIT