oauth

package
v0.0.0-...-3719db4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserID = errors.New("invalid or missing user id")
)

Functions

func GetPing

func GetPing(w http.ResponseWriter, r *http.Request)

Types

type OAuth

type OAuth struct {
	*session.Auth
	// contains filtered or unexported fields
}

func New

func New(tokAuth *session.Auth, db *data.Database) *OAuth

func (*OAuth) Authorize

func (o *OAuth) Authorize(w http.ResponseWriter, r *http.Request)

func (*OAuth) GetMe

func (o *OAuth) GetMe(w http.ResponseWriter, r *http.Request)

func (*OAuth) GetToken

func (o *OAuth) GetToken(w http.ResponseWriter, r *http.Request)

func (*OAuth) Routes

func (o *OAuth) Routes() chi.Router

func (*OAuth) Signin

func (o *OAuth) Signin(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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