[IAM] Clear user's permission cache after login (#102311)

This commit is contained in:
xavi
2025-03-19 10:06:58 +01:00
committed by GitHub
parent ef94d21093
commit 045733aed6
3 changed files with 76 additions and 0 deletions
@@ -142,6 +142,7 @@ func ProvideRegistration(
authnSvc.RegisterPostAuthHook(rbacSync.SyncPermissionsHook, 120)
authnSvc.RegisterPostLoginHook(orgSync.SetDefaultOrgHook, 140)
authnSvc.RegisterPostLoginHook(rbacSync.ClearUserPermissionCacheHook, 170)
nsSync := sync.ProvideNamespaceSync(cfg)
authnSvc.RegisterPostAuthHook(nsSync.SyncNamespace, 150)