auth

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountAuth

type AccountAuth struct {
	jwt.RegisteredClaims
	Username string `json:"username"`
	Email    string `json:"email"`
	Name     string `json:"name"`
	ProviderDetails
}

type Auth

type Auth struct {
	Config config.Config
}

func NewAuth

func NewAuth(c config.Config) Auth

func (Auth) AuthHandler

func (a Auth) AuthHandler(res http.ResponseWriter, req *http.Request)

func (Auth) CallbackHandler

func (a Auth) CallbackHandler(res http.ResponseWriter, req *http.Request)

nolint:gocyclo

func (Auth) LogoutHandler

func (a Auth) LogoutHandler(res http.ResponseWriter, req *http.Request)

type ProviderDetails

type ProviderDetails struct {
	Name      string `json:"name"`
	AccountID string `json:"account_id"`
}

Jump to

Keyboard shortcuts

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