AngularJS HTTP Auth Interceptor
JSON →angular-http-auth is an AngularJS module providing an HTTP interceptor to handle 401 (Unauthorized) and 403 (Forbidden) responses, facilitating robust authentication and authorization flows within AngularJS 1.x applications. It automatically buffers failed requests upon receiving a 401, broadcasts an `event:auth-loginRequired` event to trigger a login UI, and re-submits buffered requests once `authService.loginConfirmed()` is invoked. For 403 responses, it broadcasts `event:auth-forbidden`. The current stable version is 1.5.0, released in 2016. This package is now effectively abandoned due to its strict dependency on AngularJS 1.x, which reached End-of-Life on December 31, 2021. Its primary differentiator was its opinionated, event-driven approach to authentication challenges, deeply integrated into the AngularJS `$http` service.
Traffic · last 30 days ↓62% vs prev 7d
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · VN · 🇨🇦 Canada