npm keycloak-angular 19.0.0
v19.0.0

latest releases: 19.0.2, 19.0.1
2 days ago

✨ Key Highlights

  • Functional Configuration: Simplify setup with provideKeycloak—no more KeycloakService or KeycloakAngularModule.
  • Angular Signals: Reactive handling of Keycloak events for a cleaner, modern approach.
  • Enhanced Interceptors: Add tokens with explicit configuration using includeBearerTokenInterceptor and customBearerTokenInterceptor.
  • Role-Based Rendering: New *kaHasRoles directive for conditional rendering based on roles.
  • Modular Features: Introduced withAutoRefreshToken for seamless token refresh and session management.
  • Functional Route Guards: Create custom guards with createAuthGuard for streamlined route protection.

⚠️ Breaking Changes

  • Deprecated KeycloakService, KeycloakAngularModule, KeycloakAuthGuard, and keycloakEvents$.
  • Bearer tokens are no longer added automatically to all HTTP requests—explicit configuration required.

🛠️ Legacy Version Still Bundled

The legacy implementation of Keycloak-Angular (KeycloakService, KeycloakAngularModule, etc.) is still bundled in this release for backward compatibility. However, it is deprecated and will be removed in a future major version. We strongly encourage migrating to the new APIs.

🛠️ Migration Guide

See the migration guide. 🚀

Don't miss a new keycloak-angular release

NewReleases is sending notifications on new releases.