Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEntitlement ¶ added in v0.3.6
func WithEntitlement(jwtAuthorizer JWTAuthorizer, entitlement EntitlementType) *jwtAuthorizerEntitlement
Types ¶
type EntitlementType ¶ added in v0.3.6
type EntitlementType string
const ( Any EntitlementType = "" Wireguard EntitlementType = "wireguard" IPRose EntitlementType = "iprose" Proxy EntitlementType = "proxy" )
type JWTAuthorizer ¶
type JWTAuthorizer interface {
Authenticate(tokenString string, myAudience string) (*auth.ClientClaims, error)
}
Click to show internal directories.
Click to hide internal directories.