Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthRequired ¶
func AuthRequired() gin.HandlerFunc
A middleware that responds with http.StatusForbidden when no valid bearer was supplied.
func AuthorizationHeaderParser ¶
func AuthorizationHeaderParser(userRepo repositories.UserRepository) gin.HandlerFunc
A middleware that parses the 'Authorization' header field using a bearer token. In this case, the bearer token can be either the JWT or a
func GameServerAccessOnly ¶
func GameServerAccessOnly() gin.HandlerFunc
Checks if the game server access token was set as a header field. Returns a forbidden response when this is not the case.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.