Categorygithub.com/lordtor/go-base-api-auth
modulepackage
0.1.1
Repository: https://github.com/lordtor/go-base-api-auth.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CreateTokenEndpoint godoc @Summary Create agent token @Tags auth @Description Create JWT token by header Service-Agent & user IP @Accept json @Produce json @Success 201 {object} JSONResult{data=JwtToken} "desc" @Failure 400,406 {object} JSONResult @Failure 500 {object} JSONResult @Router /auth/api/v1/createToken [post] @Param Service-Agent header string true "Service-Agent" @Param X-FORWARDED-FOR header string false "X-FORWARDED-FOR".
No description provided by the author
ProtectedEndpoint godoc @Summary Read token info @Tags auth @Description Read token info & return @Accept json @Produce json @Param token query string false "JWT token" @Success 200 {object} JSONResult{data=Claims} "desc" @Failure 400,404 {object} JSONResult @Failure 500 {object} JSONResult @Router /auth/api/v1/readToken [get].
No description provided by the author
No description provided by the author
No description provided by the author
ValidateToken godoc @Summary Validate auth token @Tags auth @Description Validate auth token & show info if valid @Accept json @Produce json @Success 200 {object} JSONResult{data=Claims} "desc" @Failure 400,404,405 {object} JSONResult @Failure 500 {object} JSONResult @Security ApiKeyAuth @Param Service-Agent header string true "Service-Agent" @Router /auth/api/v1/validateToken [get].
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author