provider

package
v0.0.0-...-6a8978f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 4 Imported by: 0

README

令牌颁发器

  • PASSWORD: 基于用户密码的认证
  • LDAP: 基于LDAP的认证

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func Registe

func Registe(i Issuer)

注册令牌颁发器

Types

type Issuer

type Issuer interface {
	Init() error
	GrantType() token.GRANT_TYPE
	IssueToken(context.Context, *token.IssueTokenRequest) (*token.Token, error)
	IssueCode(context.Context, *code.IssueCodeRequest) (*code.Code, error)
}

颁发器能不能同时支持颁发Token和颁发验证码

func Get

func Get(gt token.GRANT_TYPE) Issuer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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