AuthN: Fix namespaces for anonymous and render (#75661)

* AuthN: remove IsAnonymous from identity struct and set correct namespace for anonymous and render

* Don't parse user id for render namespace
This commit is contained in:
Karl Persson
2023-09-29 09:10:33 +02:00
committed by GitHub
parent 0e2b741fc3
commit 7a38090bc0
10 changed files with 20 additions and 17 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func (a *Anonymous) Authenticate(ctx context.Context, r *authn.Request) (*authn.
}()
return &authn.Identity{
IsAnonymous: true,
ID: authn.AnonymousNamespaceID,
OrgID: o.ID,
OrgName: o.Name,
OrgRoles: map[int64]org.RoleType{o.ID: org.RoleType(a.cfg.AnonymousOrgRole)},