Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LOGGER = logging.MustGetLogger("middleware")
LOGGER for logging
Functions ¶
func HasEndpoint ¶
func HasEndpoint(claims *jwt.IJWTTokenClaim, enpTarget string) bool
HasEndpoint : check if requested endpoint is included in endpoint array
func HasIP ¶
func HasIP(claims *jwt.IJWTTokenClaim, remoteAddrs []string) bool
HasIP : check if the request ip address is included in token ip array
func IsForParticipant ¶
func IsForParticipant(claims *jwt.IJWTTokenClaim) bool
IsForParticipant : if service is not a singleton then check if the token participant matches the participant id per the env var
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.