oauthutils

package
v0.0.0-...-1d94267 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: AGPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SuccessHandler    interface{}
	BeginAuthHandler  echo.Handler
	AfterLoginSuccess []func(ctx echo.Context, ouser *goth.User) (end bool, err error)
)

Functions

func Accounts

func Accounts() []oauth2.Account

func Default

func Default() *oauth2.OAuth

func FindAccounts

func FindAccounts() ([]*oauth2.Account, error)

FindAccounts 第三方登录平台账号

func FireAfterLoginSuccess

func FireAfterLoginSuccess(ctx echo.Context, ouser *goth.User) (end bool, err error)

func InitOauth

func InitOauth(e *echo.Echo, middlewares ...interface{})

InitOauth 第三方登录

func OnAfterLoginSuccess

func OnAfterLoginSuccess(hooks ...func(ctx echo.Context, ouser *goth.User) (end bool, err error))

func RegisterProvider

func RegisterProvider(c *oauth2.Config)

RegisterProvider 注册Provider

func UpdateAccount

func UpdateAccount() error

UpdateAccount 第三方登录平台账号

Types

This section is empty.

Jump to

Keyboard shortcuts

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