Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChangePasswordUrlPath = "/auth/v1/changePassword"
View Source
var LoginUrlPath = "/auth/v2/login"
View Source
var ValidateTokenUrlPath = "/auth/v2/validateToken"
Functions ¶
This section is empty.
Types ¶
type AuthClient ¶
type ChangePasswordRequest ¶
type ChangePasswordRequest struct { OldPassword string `json:"oldPassword"` NewPassword string `json:"newPassword"` Client AuthClient `json:"client"` }
type LoginRequest ¶
type LoginRequest struct { Login string `json:"login"` Password string `json:"password"` GenerateToken bool `json:"generateToken"` Client AuthClient `json:"client"` }
type LoginResponse ¶
type LoginResponse struct { Username string `json:"username"` CommonNames []string `json:"commonNames"` Uid string `json:"uid"` Emails []string `json:"emails"` EmailVerified bool `json:"emailVerified"` // Not used for now Groups []string `json:"groups"` Token string `json:"token"` ClientTTL time.Duration `json:"clientTTL"` }
type ValidateTokenRequest ¶
type ValidateTokenRequest struct { Token string `json:"token"` Client AuthClient `json:"client"` }
type ValidateTokenResponse ¶
Click to show internal directories.
Click to hide internal directories.