provider

package
v0.0.0-...-502b73d Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

认证方式

令牌颁发器(适配器)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func Registry

func Registry(key token.GRANT_TYPE, value Issuer)

Types

type Issuer

type Issuer interface {
	Config() error
	TokenIssuer
}

type TokenIssuer

type TokenIssuer interface {
	IssueToken(context.Context, *token.IssueTokenRequest) (*token.Token, error)
}

func Get

func Get(key token.GRANT_TYPE) (TokenIssuer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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