auth

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestJWTAuth

func TestJWTAuth(c echo.Context) error

TestJWTAuth godoc @ID TestJWTAuth @Summary Test JWT authentication @Description Test JWT authentication @Tags [Admin] API Request Management @Accept json @Produce json @Success 200 {object} AuthsInfo "Information of JWT authentication" @Failure 400 {object} object "Invalid Request" @Router /auth/test [get] @Security Bearer

Types

type AuthsInfo

type AuthsInfo struct {
	Authenticated bool   `json:"authenticated"`
	Role          string `json:"role"`
	Name          string `json:"name"`
	ExpiredTime   string `json:"expired-time"`
	Token         string `json:"token"`
}

Jump to

Keyboard shortcuts

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