validation

package
v0.7.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 (validator *RequestValidator) ValidateClientCredentials(r *http.Request) (*config.Client, bool, bool)

func (*RequestValidator) ValidateClientId

func (validator *RequestValidator) ValidateClientId(clientId string) (*config.Client, bool)

func (*RequestValidator) ValidateFormLogin

func (validator *RequestValidator) ValidateFormLogin(r *http.Request) (*config.User, *string)

func (*RequestValidator) ValidateUserPassword

func (validator *RequestValidator) ValidateUserPassword(username string, password string) (*config.User, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL