Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Issuer is the name of the issuer for PipeCD token. Issuer = "PipeCD" // SignedTokenKey is the name of singed token key in cookie. SignedTokenKey = "token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { jwtgo.StandardClaims AvatarURL string `json:"avatarUrl,omitempty"` Role model.Role `json:"role,omitempty"` }
Claims extends the StandardClaims with the role to access PipeCD resources.
Click to show internal directories.
Click to hide internal directories.