AuthN: Use sync hook to fetch service account (#84078)

* Use sync hook to fetch service account
This commit is contained in:
Karl Persson
2024-03-11 15:56:53 +01:00
committed by GitHub
parent d8b8a2c2b0
commit 9c292d2c3f
4 changed files with 14 additions and 45 deletions
@@ -111,7 +111,7 @@ func (s *UserSync) FetchSyncedUserHook(ctx context.Context, identity *authn.Iden
return nil
}
namespace, id := identity.GetNamespacedID()
if namespace != authn.NamespaceUser {
if namespace != authn.NamespaceUser && namespace != authn.NamespaceServiceAccount {
return nil
}