AuthZ service: Support anonymous access (#98322)

support anonymous access
This commit is contained in:
Ieva
2024-12-20 16:32:57 +01:00
committed by GitHub
parent efb7cc0343
commit 1334caa6c8
18 changed files with 102 additions and 52 deletions
+4
View File
@@ -8,6 +8,10 @@ func userIdentifierCacheKeyById(namespace, ID string) string {
return "ID_" + namespace + "_" + ID
}
func anonymousPermCacheKey(namespace, action string) string {
return namespace + "_anonymous_" + action
}
func userPermCacheKey(namespace, userUID, action string) string {
return namespace + "_" + userUID + "_" + action
}