chooser

package
v3.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 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 Provider

type Provider struct {
	Auth         model.Authentication
	Name         string
	RegisterPath string
}

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) 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