auth

package
v0.0.0-...-ee8a461 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 12 Imported by: 0

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 (a AuthService) AuthenticateRequest(r *http.Request) (auth.Info, error)

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

func (a AuthService) RequestWithUser(user auth.Info, r *http.Request) *http.Request

type User

type User struct {
	auth.DefaultUser
}

Jump to

Keyboard shortcuts

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