oauth

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Login(c *gin.Context)
	Callback(c *gin.Context)
}

func NewOauth2Provider

func NewOauth2Provider(
	ctx context.Context,
	name string,
	dbClient mongo.DbClient,
	config security.OAuth2ProviderConfig,
	store sessions.Store,
	userProvider security.UserProvider,
	maintenanceAdapter config.MaintenanceAdapter,
	enforcer security.Enforcer,
	tokenService apisecurity.TokenService,
	maxResponseSize int64,
) (Provider, error)

Jump to

Keyboard shortcuts

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