Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyUserID = "user_id" KeyServiceTokenID = "svc_token_id" KeyFullName = "fullname" KeyAuthorized = "authorized" KeyExpiresAt = "expires_at" HeaderAuthorization = "Authorization" HeaderUserID = "mc_userid" AccessToken = "access_token" DefaultTokenExpiration = time.Hour * 24 // 24 hours AUTH_COOKIE_NAME = "__mc_auth" SIGNOUT_PATH = "/api/mc_auth/sign_out" )
global constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionConfig ¶
type ActionConfig struct { Resource string `json:"resource" yaml:"resource"` KayPath string `json:"keyPath" yaml:"keyPath"` Payload string `json:"payload" yaml:"payload"` }
ActionConfig struct
type JwtTokenResponse ¶
type JwtTokenResponse struct { ID string `json:"id" yaml:"id"` Username string `json:"username" yaml:"username"` FullName string `json:"fullName" yaml:"fullName"` Email string `json:"email" yaml:"email"` Token string `json:"token" yaml:"token"` }
JwtTokenResponse struct
Click to show internal directories.
Click to hide internal directories.