jwthandlers

package
v0.0.0-...-851e7b8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTHandlers

type JWTHandlers struct {
	*basichandlers.Basic
}

JWTHandlers controls jwt test apis

func (*JWTHandlers) RefreshToken

func (j *JWTHandlers) RefreshToken() gin.HandlerFunc

RefreshToken defined for user to refresh a token by giving old token Invalid token can be refreshed on 48Hours @Summary 使用旧的Token来刷新token,这将活的一个新的Token @Tags 身份认证和账户 @Description token刷新 @Accept json @Produce json @Accept application/x-json-stream @Param Authorization header string true "Authentication header" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /jwt/refresh [post]

func (*JWTHandlers) Test

func (j *JWTHandlers) Test() gin.HandlerFunc

Test compares token is valid @Summary JWT测试 @Tags 身份认证和账户 @Description 用户测试JWT接口,该接口仅测试环境下可用 Test token will not validate udid and ua @Accept json @Produce json @Accept application/x-json-stream @Param Authorization header string true "Authentication header" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /jwt/test [post]

func (*JWTHandlers) TestCreate

func (j *JWTHandlers) TestCreate() gin.HandlerFunc

TestCreate creates a test bearer @Summary JWT测试生成Token @Tags 身份认证和账户 @Description 用户测试JWT接口,仅在测试环境中生效 @Accept json @Produce json @Accept application/x-json-stream @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /jwt/testCreate [post]

Jump to

Keyboard shortcuts

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