“Angular Authentication using OAuth2 and OpenID Connect” Book

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”, I will guide you in detail on how to implement authentication for Angular applications using OAuth2 and OpenID Connect.

The Kindle version of this book is available here https://www.amazon.com/dp/B0C4BH9QV3.

In this book, I use Keycloak to do the Authorization Server of OAuth2, show you how to create a new Client ID and user in Keycloak.

You will learn how to implement login, stay logged in and decide when to end the user session for your Angular application.


  • Angular 15
  • Keycloak 21.1.1

The table of contents of this book is as follows:

1. Introduction
2. Authorization Server

2.1 Using Keycloak

2.1.1 Create a new client

2.1.2 Add a new user

3. Angular application

3.1 Initialize the project

3.2 Login with Authorization Server

3.2.1 Configure Authorization Server information

3.2.2 Implement login

3.3 Stay logged in or logout?

3.3.1 Stay logged in

3.3.2 Logout


A. Install Keycloak standalone server

Add Comment