Documentation
¶
Index ¶
Constants ¶
View Source
const SignerAlgo = "HS256"
SignerAlgo id default algorithm used to sign JWT tokens.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SecretFunc ¶
type Token ¶
type Token struct {
Type Type
// contains filtered or unexported fields
}
func ParseRequest ¶
type Type ¶
type Type string
const ( UserToken Type = "user" // user token (exp cli) - deprecated, use AccessToken SessToken Type = "sess" // session token (ui token requires csrf check) HookToken Type = "hook" // repo hook token CsrfToken Type = "csrf" // CSRF protection token AgentToken Type = "agent" // agent authentication token AutoscalerToken Type = "autoscaler" // autoscaler authentication token OAuthStateToken Type = "oauth-state" AccessToken Type = "access" // personal access token with scopes )
Click to show internal directories.
Click to hide internal directories.