Authentication is an important concept, a function that all web applications today need to implement to protect the information of applications and users. Depending on the language, where the user’s login information is stored, we will implement this authentication properly. In this new book “Angular Authentication using OAuth2 and OpenID Connect – Second Edition”, I will guide you in detail on how to implement authentication for Angular applications using OAuth2 and OpenID Connect.
You can buy this book here:
In this book, I will show you how to use Keycloak and Spring Authorization Server to make an Authorization Server, how to create and configure client ID and user information to use these two tools.
You will learn how to implement login, stay logged in, and decide when to end the user session for your Angular application.
- Angular 16.2.0
- Spring Boot 3.1.4
- Keycloak 22.0.3
The table of contents of this book is as follows:
2. Authorization Server
- 2.1 Using Keycloak
- 2.1.1 Create a new client
- 2.1.2 Add a new user
- 2.2 Using Spring Authorization Server
- 2.2.1 Initialize the project
- 2.2.2 Configure
3. Angular application
- 3.1 Initialize the project
- 3.2 Authenticate using Keycloak
- 3.2.1 Configure Authorization Server information
- 3.2.2 Implement login
- 3.2.3 Stay logged in or logout?
- 188.8.131.52 Stay logged in
- 184.108.40.206 Logout
- 3.3 Authenticate using Spring Authorization Server
- 3.3.1 Create new API Gateway project
- 3.3.2 Implement login
- 220.127.116.11 Configure API Gateway
- 18.104.22.168 Implement login in Angular application
- 22.214.171.124 Complete login
- 3.3.3 Logout
A. Install Keycloak standalone server