auth

package
v0.0.0-...-bc1f52c Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClassic

func WithClassic(cfg config.OAuthConfig) func(*Auth)

func WithGoogleAPI

func WithGoogleAPI(cfg config.OAuthConfig) func(*Auth)

Types

type Auth

type Auth struct {
	API map[string]IOAuth
}

func New

func New(options ...func(*Auth)) *Auth

type IOAuth

type IOAuth interface {
	GenerateStateOauthCookie(http.ResponseWriter) string
	GetUserData(code string) ([]byte, error)
	Config() *oauth2.Config
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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