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 ¶
func ToRoutingClaim ¶
func ToRoutingClaim(headerName string) RoutingClaim
Click to show internal directories.
Click to hide internal directories.