Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(config conf.AuthConfig) AuthService
func (AuthService) AuthenticateRequest ¶
func (AuthService) CreateToken ¶
func (a AuthService) CreateToken(user auth.Info) (string, error)
func (AuthService) GetUserFromRequest ¶
func (a AuthService) GetUserFromRequest(r *http.Request) auth.Info
func (AuthService) RequestWithUser ¶
type User ¶
type User struct {
auth.DefaultUser
}
Click to show internal directories.
Click to hide internal directories.