MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / RoleNames

Method RoleNames

auth/principal.go:111–111  ·  view source on GitHub ↗

The set of Roles the user belongs to (including ones given to it by the sync function and by OIDC/JWT) Returns nil if invalidated

()

Source from the content-addressed store, hash-verified

109 // The set of Roles the user belongs to (including ones given to it by the sync function and by OIDC/JWT)
110 // Returns nil if invalidated
111 RoleNames() ch.TimedSet
112
113 // The roles the user was explicitly granted access to thru the admin API.
114 ExplicitRoles() ch.TimedSet

Callers 15

TestRoleInheritanceFunction · 0.95
TestConcurrentUserWritesFunction · 0.95
UpdatePrincipalMethod · 0.95
getPrincipalMethod · 0.65
TestJWTRolesChannelsFunction · 0.65
TestRebuildUserRolesFunction · 0.65
marshalPrincipalFunction · 0.65
TestRoleAccessChangesFunction · 0.65
checkForUserUpdatesMethod · 0.65

Implementers 1

userImplauth/user.go

Calls

no outgoing calls

Tested by 9

TestRoleInheritanceFunction · 0.76
TestConcurrentUserWritesFunction · 0.76
TestJWTRolesChannelsFunction · 0.52
TestRebuildUserRolesFunction · 0.52
TestRoleAccessChangesFunction · 0.52
TestUserFunctionsFunction · 0.52
TestUserN1QLQueriesFunction · 0.52