Documentation ¶
Index ¶
- type RequestValidator
- func (validator *RequestValidator) GetLoginToken(loginToken string) (jwt.Token, error)
- func (validator *RequestValidator) NewLoginToken(id string) string
- func (validator *RequestValidator) ValidateClientCredentials(r *http.Request) (*config.Client, bool, bool)
- func (validator *RequestValidator) ValidateClientId(clientId string) (*config.Client, bool)
- func (validator *RequestValidator) ValidateFormLogin(r *http.Request) (*config.User, *string)
- func (validator *RequestValidator) ValidateUserPassword(username string, password string) (*config.User, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestValidator ¶
type RequestValidator struct {
// contains filtered or unexported fields
}
func NewRequestValidator ¶
func NewRequestValidator() *RequestValidator
func (*RequestValidator) GetLoginToken ¶ added in v0.7.7
func (validator *RequestValidator) GetLoginToken(loginToken string) (jwt.Token, error)
func (*RequestValidator) NewLoginToken ¶ added in v0.7.7
func (validator *RequestValidator) NewLoginToken(id string) string
func (*RequestValidator) ValidateClientCredentials ¶
func (*RequestValidator) ValidateClientId ¶
func (validator *RequestValidator) ValidateClientId(clientId string) (*config.Client, bool)
func (*RequestValidator) ValidateFormLogin ¶
func (*RequestValidator) ValidateUserPassword ¶
Click to show internal directories.
Click to hide internal directories.