oauth

package
v0.0.0-...-39079ff Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserInfoNotReceived = fmt.Errorf("user info not received")
)

Functions

func NewProvider

func NewProvider(
	oauthConfig *oauth2.Config,
	userInfoURL string,
	unmarshallUserInfo UnmarshallUserInfo,
	opts ...Option,
) (provider2.OAuthProvider, error)

Types

type Option

type Option func(*provider) error

func WithLogger

func WithLogger(logger zerolog.Logger) Option

type UnmarshallUserInfo

type UnmarshallUserInfo = func(bytes []byte) (provider2.UserInfo, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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