Merge pull request #33718 from UsainBloot/auth0-cache-profile

auth0: cache profile API responses during token refresh
This commit is contained in:
Patrik Oldsberg
2026-04-08 11:39:21 +02:00
committed by GitHub
8 changed files with 452 additions and 85 deletions
@@ -0,0 +1,5 @@
---
'@backstage/plugin-auth-backend-module-auth0-provider': patch
---
Added `createAuth0Authenticator` factory function that accepts a `CacheService` to cache Auth0 profile API responses for 1 minute during token refreshes. This avoids hitting Auth0 rate limits on repeated page refreshes. The module now uses the cached variant by default. The existing `auth0Authenticator` export remains available for use without caching.