manager

package
v0.0.0-...-2f30af1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, target interface{})

Types

type Manager

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

func NewManager

func NewManager(managerConfig *oauth2.ManagerConfig) *Manager

func (*Manager) GenerateCode

func (manager *Manager) GenerateCode(token store.Token, req *oauth2.Request, ctx *context.Context) error

generator wrap

func (*Manager) GenerateToken

func (manager *Manager) GenerateToken(token store.Token, req *oauth2.Request, ctx *context.Context, isGenerateRefresh bool) error

func (*Manager) GenerateTokenAndDelToken

func (manager *Manager) GenerateTokenAndDelToken(token store.Token, tokenToDel store.Token, req *oauth2.Request, ctx *context.Context, isGenerateRefresh bool) error

func (*Manager) TokenCreate

func (manager *Manager) TokenCreate(token store.Token) error

func (*Manager) TokenGC

func (manager *Manager) TokenGC()

func (*Manager) TokenGetByAccess

func (manager *Manager) TokenGetByAccess(access string) (store.Token, error)

func (*Manager) TokenGetByCode

func (manager *Manager) TokenGetByCode(code string) (store.Token, error)

func (*Manager) TokenGetByRefresh

func (manager *Manager) TokenGetByRefresh(refresh string) (store.Token, error)

func (*Manager) TokenNew

func (manager *Manager) TokenNew(ctx *context.Context) store.Token

tokenStore wrap

Jump to

Keyboard shortcuts

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