login

package
v0.0.0-...-891d2fd Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleProvider

type GoogleProvider struct {
	Session     session.Handler
	QueryUser   func(ctx context.Context, userinfo map[string]interface{}) (map[string]string, error)
	RedirectURL string
	NewUSerURL  string
}

func WithGoogle

func WithGoogle(s session.Handler, redirectURL string, createNewUserURL string, queryUser func(ctx context.Context, provideruserinfo map[string]interface{}) (dbuserinfo map[string]string, err error)) GoogleProvider

func (GoogleProvider) Close

func (GoogleProvider) ServeHTTP

func (g GoogleProvider) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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