This package provides an Angular service and interceptor to simplify integration with Keycloak, an open-source identity and access management solution. It offers features such as authentication, authorization, token management, and automatic bearer token injection for HTTP requests. The package also includes an authentication guard for Angular routes.
Add the package to your workspace:
yarn add @rxap/keycloak
Install peer dependencies:
yarn add @angular/common @angular/core @angular/router keycloak-js rxjs
Execute the init generator:
yarn nx g @rxap/keycloak:init
Initialize the package in the workspace
nx g @rxap/keycloak:init