| 
1 |  | -# Angular15JwtAuth  | 
 | 1 | +# Angular 15 JWT Authentication & Authorization example with Rest API  | 
2 | 2 | 
 
  | 
3 |  | -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.0.3.  | 
 | 3 | +Build Angular 15 JWT Authentication & Authorization example with Rest Api, HttpOnly Cookie and JWT (including HttpInterceptor, Router & Form Validation).  | 
 | 4 | +- JWT Authentication Flow for User Registration (Signup) & User Login  | 
 | 5 | +- Project Structure with HttpInterceptor, Router  | 
 | 6 | +- Way to implement HttpInterceptor  | 
 | 7 | +- How to store JWT token in HttpOnly Cookie  | 
 | 8 | +- Creating Login, Signup Components with Form Validation  | 
 | 9 | +- Angular Components for accessing protected Resources  | 
 | 10 | +- How to add a dynamic Navigation Bar to Angular App  | 
 | 11 | +- Working with Browser Session Storage  | 
4 | 12 | 
 
  | 
5 |  | -## Development server  | 
 | 13 | +## Flow for User Registration and User Login  | 
 | 14 | +For JWT – Token based Authentication with Rest API, we’re gonna call 2 endpoints:  | 
 | 15 | +- POST `api/auth/signup` for User Registration  | 
 | 16 | +- POST `api/auth/signin` for User Login  | 
 | 17 | +- POST `api/auth/signout` for User Logout  | 
6 | 18 | 
 
  | 
7 |  | -Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.  | 
 | 19 | +You can take a look at following flow to have an overview of Requests and Responses that Angular 15 JWT Authentication & Authorization Client will make or receive.  | 
8 | 20 | 
 
  | 
9 |  | -## Code scaffolding  | 
 | 21 | +  | 
10 | 22 | 
 
  | 
11 |  | -Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.  | 
 | 23 | +## Angular JWT App Diagram with Router and HttpInterceptor  | 
 | 24 | +  | 
12 | 25 | 
 
  | 
13 |  | -## Build  | 
 | 26 | +For more detail, please visit the tutorial:  | 
 | 27 | +> [Angular 15 JWT Authentication & Authorization with Web API example](https://www.bezkoder.com/angular-15-jwt-auth/)  | 
14 | 28 |  | 
15 |  | -Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.  | 
 | 29 | +> [Angular Logout when Token is expired](https://www.bezkoder.com/logout-when-token-expired-angular-15/)  | 
16 | 30 |  | 
17 |  | -## Running unit tests  | 
 | 31 | +> [Angular Refresh Token with Interceptor and JWT example](https://www.bezkoder.com/angular-15-refresh-token/)  | 
18 | 32 |  | 
19 |  | -Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).  | 
 | 33 | +## With Spring Boot back-end  | 
20 | 34 | 
 
  | 
21 |  | -## Running end-to-end tests  | 
 | 35 | +> [Angular 15 + Spring Boot: JWT Authentication and Authorization example](https://www.bezkoder.com/angular-15-spring-boot-jwt-auth/)  | 
22 | 36 |  | 
23 |  | -Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.  | 
 | 37 | +## With Node.js Express back-end  | 
24 | 38 | 
 
  | 
25 |  | -## Further help  | 
 | 39 | +> [Angular 15 + Node.js Express: JWT Authentication and Authorization example](https://www.bezkoder.com/node-js-angular-15-jwt-auth/)  | 
26 | 40 |  | 
27 |  | -To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.  | 
 | 41 | +Run `ng serve --port 8081` for a dev server. Navigate to `http://localhost:8081/`.  | 
 | 42 | + | 
 | 43 | +## More practice  | 
 | 44 | +> [Angular 15 CRUD example with Rest API](https://www.bezkoder.com/angular-15-crud-example/)  | 
 | 45 | + | 
 | 46 | +> [Angular 15 Pagination example](https://www.bezkoder.com/angular-15-pagination-ngx/)  | 
 | 47 | + | 
 | 48 | +> [Angular 15 File upload example with Progress bar](https://www.bezkoder.com/angular-15-file-upload/)  | 
 | 49 | + | 
 | 50 | +> [Angular 15 Form Validation example](https://www.bezkoder.com/angular-15-form-validation/)  | 
 | 51 | + | 
 | 52 | +Fullstack with Node:  | 
 | 53 | +> [Angular 15 + Node Express + MySQL example](https://www.bezkoder.com/angular-15-node-js-express-mysql/)  | 
 | 54 | + | 
 | 55 | +> [Angular 15 + Node Express + PostgreSQL example](https://www.bezkoder.com/angular-15-node-js-express-postgresql/)  | 
 | 56 | + | 
 | 57 | +> [Angular 15 + Node Express + MongoDB example](https://www.bezkoder.com/angular-15-node-js-express-mongodb/)  | 
 | 58 | + | 
 | 59 | +> [Angular 15 + Node Express: File upload example](https://www.bezkoder.com/angular-15-node-express-file-upload/)  | 
 | 60 | + | 
 | 61 | +> [Angular 15 + Node.js Express: JWT Authentication and Authorization example](https://www.bezkoder.com/node-js-angular-15-jwt-auth/)  | 
 | 62 | + | 
 | 63 | +Fullstack with Spring Boot:  | 
 | 64 | +> [Angular 15 + Spring Boot example](https://www.bezkoder.com/spring-boot-angular-15-crud/)  | 
 | 65 | + | 
 | 66 | +> [Angular 15 + Spring Boot + MySQL example](https://www.bezkoder.com/spring-boot-angular-15-mysql/)  | 
 | 67 | + | 
 | 68 | +> [Angular 15 + Spring Boot + PostgreSQL example](https://www.bezkoder.com/spring-boot-angular-15-postgresql/)  | 
 | 69 | + | 
 | 70 | +> [Angular 15 + Spring Boot + MongoDB example](https://www.bezkoder.com/spring-boot-angular-15-mongodb/)  | 
 | 71 | + | 
 | 72 | +> [Angular 15 + Spring Boot: File upload example](https://www.bezkoder.com/angular-15-spring-boot-file-upload/)  | 
 | 73 | + | 
 | 74 | +> [Angular 15 + Spring Boot: JWT Authentication and Authorization example](https://www.bezkoder.com/angular-15-spring-boot-jwt-auth/)  | 
 | 75 | + | 
 | 76 | +Fullstack with Django:  | 
 | 77 | +> [Angular + Django example](https://www.bezkoder.com/django-angular-13-crud-rest-framework/)  | 
 | 78 | + | 
 | 79 | +> [Angular + Django + MySQL](https://www.bezkoder.com/django-angular-mysql/)  | 
 | 80 | + | 
 | 81 | +> [Angular + Django + PostgreSQL](https://www.bezkoder.com/django-angular-postgresql/)  | 
 | 82 | + | 
 | 83 | +> [Angular + Django + MongoDB](https://www.bezkoder.com/django-angular-mongodb/)  | 
 | 84 | + | 
 | 85 | +Serverless with Firebase:  | 
 | 86 | +> [Angular 15 Firebase CRUD with Realtime DataBase](https://www.bezkoder.com/angular-15-firebase-crud/)  | 
 | 87 | + | 
 | 88 | +> [Angular 15 Firestore CRUD example](https://www.bezkoder.com/angular-15-firestore-crud/)  | 
 | 89 | + | 
 | 90 | +> [Angular 15 Firebase Storage: File Upload/Display/Delete example](https://www.bezkoder.com/angular-15-firebase-storage/)  | 
 | 91 | + | 
 | 92 | +Integration (run back-end & front-end on same server/port)  | 
 | 93 | +> [How to integrate Angular with Node Restful Services](https://www.bezkoder.com/integrate-angular-12-node-js/)  | 
 | 94 | + | 
 | 95 | +> [How to Integrate Angular with Spring Boot Rest API](https://www.bezkoder.com/integrate-angular-12-spring-boot/)  | 
0 commit comments