|
1 | | -# AngularXSpringSecurity |
| 1 | +# Authentication & Authorization Starter with Angular and Spring Boot |
2 | 2 |
|
3 | | -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.2.10. |
| 3 | +Here is the backend repository: https://github.com/codeblox-codes/spring-boot-examples/tree/master/spring-security-full-stack |
4 | 4 |
|
5 | | -## Development server |
| 5 | +This Spring Boot Authentication Starter provides a quick setup for implementing authentication in your Spring Boot applications using Spring Security and JWT (JSON Web Token) for secure communication between client and server. |
6 | 6 |
|
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. |
| 7 | +### Functionalities |
| 8 | +- Registration: By default the user has a USER role. When a user register an email containing a code is sent to the email. The user has to validate his account with the code sent. |
| 9 | +- Login: The user login using his email and his password. An access token and a refresh token are generated. The access token is used on the header of every request that requires authentication. And if the access token has expired, the user can request for another one using the refresh token. If the refresh token also has expired, the user is kicked out of his account. |
| 10 | +- Update password |
8 | 11 |
|
9 | | -## Code scaffolding |
| 12 | +<!-- ### Endpoints |
| 13 | + --> |
10 | 14 |
|
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`. |
12 | | - |
13 | | -## Build |
14 | | - |
15 | | -Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. |
16 | | - |
17 | | -## Running unit tests |
18 | | - |
19 | | -Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). |
20 | | - |
21 | | -## Running end-to-end tests |
22 | | - |
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. |
24 | | - |
25 | | -## Further help |
26 | | - |
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. |
0 commit comments