auth

package
v0.0.0-...-8aa8f09 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CallbackPath = "/callback/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func New

func New(logger *logrus.Entry, sessionStore sessions.Store) *Api

func (*Api) Login

func (a *Api) Login(w http.ResponseWriter, r *http.Request)

func (*Api) LoginCallback

func (a *Api) LoginCallback(w http.ResponseWriter, r *http.Request)

func (*Api) Logout

func (a *Api) Logout(w http.ResponseWriter, r *http.Request)

func (*Api) Register

func (a *Api) Register(router *mux.Router)

func (*Api) User

func (a *Api) User(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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