Documentation
¶
Index ¶
Constants ¶
View Source
const ( HTTP_BAD_REQUEST_BODY = "Bad request body" INVALID_CREDENTIALS = "Invalid credentials" )
Variables ¶
View Source
var API_VERSION = 1
Functions ¶
func ClaimGetID ¶
ClaimGetID - extract id from jwt token claim
func ClaimGetUsername ¶
ClaimGetUsername - extract username from jwt token claim
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
goAuht http web server
func (*Server) AuthRoutes ¶
func (*Server) LoginController ¶
func (s *Server) LoginController(w http.ResponseWriter, r *http.Request)
handle login to server
Source Files
¶
Click to show internal directories.
Click to hide internal directories.