jwt

package
v0.0.0-...-518b544 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PolicyThirdParty = "third-party-jwt"
	PolicyFirstParty = "first-party-jwt"
)
View Source
const HeaderJWTClaim = "@request.auth.claims"

HeaderJWTClaim is the special header name used in virtual service for routing based on JWT claims.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwksFetchMode

type JwksFetchMode int
const (
	// Istiod is used to indicate Istiod ALWAYS fetches the JWKs server
	Istiod JwksFetchMode = iota

	// Hybrid is used to indicate Envoy fetches the JWKs server when there is a cluster entry,
	// otherwise fallback to Istiod
	Hybrid

	// Envoy is used to indicate Envoy ALWAYS fetches the JWKs server
	Envoy
)

func ConvertToJwksFetchMode

func ConvertToJwksFetchMode(mode string) JwksFetchMode

ConvertToJwksFetchMode converts from string value mode to enum JwksFetchMode value. true and false are kept for backwards compatibility.

func (JwksFetchMode) String

func (mode JwksFetchMode) String() string

String converts JwksFetchMode to readable string.

type RoutingClaim

type RoutingClaim struct {
	Match     bool
	Separator Separator
	Claims    []string
}

func ToRoutingClaim

func ToRoutingClaim(headerName string) RoutingClaim

type Separator

type Separator int
const (
	Dot Separator = iota
	Square
)

Jump to

Keyboard shortcuts

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