Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matthew-trump/jwt-minimalist-angular
connect Angular to a backend auth using Json Web Tokens
https://github.com/matthew-trump/jwt-minimalist-angular
angular angular-jwt angular2 angularcli6 jwt-authentication
Last synced: about 2 months ago
JSON representation
connect Angular to a backend auth using Json Web Tokens
- Host: GitHub
- URL: https://github.com/matthew-trump/jwt-minimalist-angular
- Owner: matthew-trump
- Created: 2019-03-21T16:57:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T08:28:43.000Z (almost 2 years ago)
- Last Synced: 2023-03-07T12:17:34.012Z (almost 2 years ago)
- Topics: angular, angular-jwt, angular2, angularcli6, jwt-authentication
- Language: TypeScript
- Homepage:
- Size: 2.61 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AngularJwt
This repository contains a simple Angular CLI project template to be used with projects that need a secure login to a backend. It is a barebones project with the minimum to use JWT authorization to a backend server which provides JWT tokens (e.g. [the node-jwt-example project](https://github.com/matthew-trump/node-jwt-example))
It is enabled to do the following things:
* allow username/password logins to the backend via a login form.
* receive and store the JWT token returned from a successful login.
* recognize http requests to the api and to add the JWT token to the Authorization header.
* provide the login state throughout the app via a service.
* establish a protected route within the app that is accessible only when logged in, and redirect invalid access to the login form (this feature requires Routing to be enabled).The configurations for various features are found in the environment file.
### Generated comments
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.2.9.