oauth

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

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

func NewAuthorizer

func NewAuthorizer(providerName string, provider goth.Provider, sessFactory *session.Factory, log logutil.Log) *Authorizer

func (Authorizer) HandleProviderCallback

func (a Authorizer) HandleProviderCallback(sctx *session.RequestContext, stateParam, codeParam string) (*goth.User, error)

func (Authorizer) RedirectToProvider

func (a Authorizer) RedirectToProvider(sctx *session.RequestContext) error

type Factory

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

func NewFactory

func NewFactory(sessFactory *session.Factory, log logutil.Log, cfg config.Config) *Factory

func (Factory) BuildAuthorizer

func (f Factory) BuildAuthorizer(providerName string, isPrivate bool) (*Authorizer, error)

Jump to

Keyboard shortcuts

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