chooser

package
v3.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logout added in v3.11.1

type Logout interface {
	Logout(http.ResponseWriter, *http.Request)
}

type Provider

type Provider struct {
	Auth         model.Authentication
	RegisterPath string
	Kind         model.UserKind
}

type Service

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

func New

func New(renderer *renderer.Service, providers ...Provider) Service

func (Service) GetUser

func (s Service) GetUser(ctx context.Context, w http.ResponseWriter, r *http.Request) (model.User, error)

func (Service) Logout added in v3.11.1

func (s Service) Logout(w http.ResponseWriter, r *http.Request)

func (Service) OnUnauthorized

func (s Service) OnUnauthorized(w http.ResponseWriter, r *http.Request, err error)

Jump to

Keyboard shortcuts

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