server

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGinAuthServer

func InitGinAuthServer(
	engine *gin.Engine,
	tokenEndpoint Oauth2EndpointGenerator,
	clientStore store.ClientStore,
	tokenStore store.TokenStore,
	rolesFunc generator.JwtRolesGenerator,
	authoritiesFunc generator.JwtAuthoritiesGenerator,
	customPayloadFunc generator.JwtCustomPayloadGenerator)

InitGinAuthServer 初始化Web认证服务

Types

type CheckTokenEndpointGenerator added in v1.0.7

type CheckTokenEndpointGenerator func() (path string, allowedMethods []string, customMiddleware gin.HandlersChain)

Token Check 端点生成器

type Oauth2EndpointGenerator added in v1.0.7

type Oauth2EndpointGenerator func() (tokenEndpoint TokenEndpointGenerator, checkTokenEndpoint CheckTokenEndpointGenerator)

端点生成器

func DefaultOauth2EndpointGenerator added in v1.0.8

func DefaultOauth2EndpointGenerator() Oauth2EndpointGenerator

DefaultOauth2EndpointGenerator 默认端点生成器

type TokenEndpointGenerator

type TokenEndpointGenerator func() (path string, allowedMethods []string, customMiddleware gin.HandlersChain)

Token 端点生成器

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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