Documentation
¶
Index ¶
- Constants
- func CanonicalScope(applicationID string, workspaceID *string, permission string) (string, error)
- func Match(granted, wanted string) bool
- func RoleMarker(applicationID string, workspaceID *string, roleKey string) (string, error)
- func ValidateRelativePermission(value string) error
- func ValidateRoleKey(value string) error
- func ValidateScopeClaim(scope, applicationID string) error
- func ValidateScopeValues(values []string, applicationID string) error
Constants ¶
View Source
const ( MaxPermissionLength = 160 MaxRoleKeyLength = 63 )
Variables ¶
This section is empty.
Functions ¶
func CanonicalScope ¶
func RoleMarker ¶
func ValidateRelativePermission ¶
ValidateRelativePermission accepts only canonical, colon-delimited permission keys.
func ValidateRoleKey ¶
func ValidateScopeClaim ¶
ValidateScopeClaim rejects non-canonical serialization as well as invalid paths.
func ValidateScopeValues ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.