oauth2

package
v0.8.13 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountInfoRedirBase string = "/auth/account-info"
	LoginRedirBase       string = "/auth/login"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuth2

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

func New

func New(logger *zap.Logger, db *sql.DB, tm *auth.TokenMgr, oAuth2Providers []*config.OAuth2Provider) *OAuth2

func (*OAuth2) Callback

func (o *OAuth2) Callback(c *gin.Context)

func (*OAuth2) GetProvider

func (o *OAuth2) GetProvider(c *gin.Context) (providers.IProvider, error)

func (*OAuth2) Login

func (o *OAuth2) Login(c *gin.Context)

func (*OAuth2) Register added in v0.8.5

func (o *OAuth2) Register(e *gin.Engine)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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