authorizer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJWT

func NewJWT(keyKeeper auth.KeyStore) (*jwtAuthorizer, error)

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)
}

Jump to

Keyboard shortcuts

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