token

package
v0.0.0-...-1305305 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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