Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TerminateRole is the role a hks jwt token needs to be signed // with to be authenticated to make a request to the /terminate route TerminateRole = "terminate" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HKSCustomClaim ¶
type HKSCustomClaim struct { Metadata struct { Roles []string `json:"https://hks.io/roles"` } `json:"metadata"` jwt.StandardClaims }
HKSCustomClaim allows us to reference custom properties in the claim of a JWT
Click to show internal directories.
Click to hide internal directories.