Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultAccessLevelAttributeKey = "access-level" DefaultAccessLevelAttributeValue = 0 )
Exported access level default values which application code may want to use.
View Source
const ElevatedAccessLevelAttributeValue = 1
ElevatedAccessLevelAttributeValue is the value that will be used when a request passes all checks for running in elevated access mode.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessLevel ¶
type AccessLevel struct { Resolve accessLevelResolver AttributeKey string }
AccessLevel provides logic for resolving the correct access level for a request given its bascule attributes.
type JWTValidator ¶ added in v0.9.1
type JWTValidator struct { // Config is used to create the clortho Resolver & Refresher for JWT verification keys Config clortho.Config `json:"config"` }
JWTValidator provides a convenient way to define jwt validator through config files
Click to show internal directories.
Click to hide internal directories.