Documentation ¶
Index ¶
- func Register(name string, target interface{})
- type Manager
- func (manager *Manager) GenerateCode(token store.Token, req *oauth2.Request, ctx *context.Context) error
- func (manager *Manager) GenerateToken(token store.Token, req *oauth2.Request, ctx *context.Context, ...) error
- func (manager *Manager) GenerateTokenAndDelToken(token store.Token, tokenToDel store.Token, req *oauth2.Request, ...) error
- func (manager *Manager) TokenCreate(token store.Token) error
- func (manager *Manager) TokenGC()
- func (manager *Manager) TokenGetByAccess(access string) (store.Token, error)
- func (manager *Manager) TokenGetByCode(code string) (store.Token, error)
- func (manager *Manager) TokenGetByRefresh(refresh string) (store.Token, error)
- func (manager *Manager) TokenNew(ctx *context.Context) store.Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) GenerateTokenAndDelToken ¶
func (*Manager) TokenGetByAccess ¶
func (*Manager) TokenGetByCode ¶
func (*Manager) TokenGetByRefresh ¶
Click to show internal directories.
Click to hide internal directories.