jwt

package
v1.13.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_external_envoy_extensions_jwt_solo_jwt_authn_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type JwtWithStage added in v1.6.4

type JwtWithStage struct {

	// The JwtAuthentication config for this filter.
	JwtAuthn *v3.JwtAuthentication `protobuf:"bytes,1,opt,name=jwt_authn,json=jwtAuthn,proto3" json:"jwt_authn,omitempty"`
	// Only SoloJwtAuthnPerRoute.JwtAuthnPerRoute with matching stage will be
	// used with this filter
	Stage uint32 `protobuf:"varint,2,opt,name=stage,proto3" json:"stage,omitempty"`
	// contains filtered or unexported fields
}

func (*JwtWithStage) Descriptor deprecated added in v1.6.4

func (*JwtWithStage) Descriptor() ([]byte, []int)

Deprecated: Use JwtWithStage.ProtoReflect.Descriptor instead.

func (*JwtWithStage) GetJwtAuthn added in v1.6.4

func (x *JwtWithStage) GetJwtAuthn() *v3.JwtAuthentication

func (*JwtWithStage) GetStage added in v1.6.4

func (x *JwtWithStage) GetStage() uint32

func (*JwtWithStage) ProtoMessage added in v1.6.4

func (*JwtWithStage) ProtoMessage()

func (*JwtWithStage) ProtoReflect added in v1.6.4

func (x *JwtWithStage) ProtoReflect() protoreflect.Message

func (*JwtWithStage) Reset added in v1.6.4

func (x *JwtWithStage) Reset()

func (*JwtWithStage) String added in v1.6.4

func (x *JwtWithStage) String() string

type SoloJwtAuthnPerRoute

type SoloJwtAuthnPerRoute struct {
	Requirement string `protobuf:"bytes,1,opt,name=requirement,proto3" json:"requirement,omitempty"`
	// Copy the claims from the payload field is the key.
	// non-existant fields are ignored.
	ClaimsToHeaders map[string]*SoloJwtAuthnPerRoute_ClaimToHeaders `` /* 196-byte string literal not displayed */
	// clear the route cache if claims were added to the header
	ClearRouteCache bool `protobuf:"varint,3,opt,name=clear_route_cache,json=clearRouteCache,proto3" json:"clear_route_cache,omitempty"`
	// To easly integrate with other filters, this will copy the payload to this
	// name in the dynamic metadata. The payload will only be copied if one
	// payload is present (i.e. or match)
	PayloadInMetadata string `protobuf:"bytes,4,opt,name=payload_in_metadata,json=payloadInMetadata,proto3" json:"payload_in_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*SoloJwtAuthnPerRoute) Descriptor deprecated

func (*SoloJwtAuthnPerRoute) Descriptor() ([]byte, []int)

Deprecated: Use SoloJwtAuthnPerRoute.ProtoReflect.Descriptor instead.

func (*SoloJwtAuthnPerRoute) GetClaimsToHeaders

func (*SoloJwtAuthnPerRoute) GetClearRouteCache

func (x *SoloJwtAuthnPerRoute) GetClearRouteCache() bool

func (*SoloJwtAuthnPerRoute) GetPayloadInMetadata

func (x *SoloJwtAuthnPerRoute) GetPayloadInMetadata() string

func (*SoloJwtAuthnPerRoute) GetRequirement

func (x *SoloJwtAuthnPerRoute) GetRequirement() string

func (*SoloJwtAuthnPerRoute) ProtoMessage

func (*SoloJwtAuthnPerRoute) ProtoMessage()

func (*SoloJwtAuthnPerRoute) ProtoReflect added in v1.6.0

func (x *SoloJwtAuthnPerRoute) ProtoReflect() protoreflect.Message

func (*SoloJwtAuthnPerRoute) Reset

func (x *SoloJwtAuthnPerRoute) Reset()

func (*SoloJwtAuthnPerRoute) String

func (x *SoloJwtAuthnPerRoute) String() string

type SoloJwtAuthnPerRoute_ClaimToHeader

type SoloJwtAuthnPerRoute_ClaimToHeader struct {
	Claim  string `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"`
	Header string `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
	Append bool   `protobuf:"varint,3,opt,name=append,proto3" json:"append,omitempty"`
	// contains filtered or unexported fields
}

If this is specified, one of the claims will be copied to a header and the route cache will be cleared.

func (*SoloJwtAuthnPerRoute_ClaimToHeader) Descriptor deprecated

func (*SoloJwtAuthnPerRoute_ClaimToHeader) Descriptor() ([]byte, []int)

Deprecated: Use SoloJwtAuthnPerRoute_ClaimToHeader.ProtoReflect.Descriptor instead.

func (*SoloJwtAuthnPerRoute_ClaimToHeader) GetAppend

func (*SoloJwtAuthnPerRoute_ClaimToHeader) GetClaim

func (*SoloJwtAuthnPerRoute_ClaimToHeader) GetHeader

func (*SoloJwtAuthnPerRoute_ClaimToHeader) ProtoMessage

func (*SoloJwtAuthnPerRoute_ClaimToHeader) ProtoMessage()

func (*SoloJwtAuthnPerRoute_ClaimToHeader) ProtoReflect added in v1.6.0

func (*SoloJwtAuthnPerRoute_ClaimToHeader) Reset

func (*SoloJwtAuthnPerRoute_ClaimToHeader) String

type SoloJwtAuthnPerRoute_ClaimToHeaders

type SoloJwtAuthnPerRoute_ClaimToHeaders struct {
	Claims []*SoloJwtAuthnPerRoute_ClaimToHeader `protobuf:"bytes,1,rep,name=claims,proto3" json:"claims,omitempty"`
	// contains filtered or unexported fields
}

func (*SoloJwtAuthnPerRoute_ClaimToHeaders) Descriptor deprecated

func (*SoloJwtAuthnPerRoute_ClaimToHeaders) Descriptor() ([]byte, []int)

Deprecated: Use SoloJwtAuthnPerRoute_ClaimToHeaders.ProtoReflect.Descriptor instead.

func (*SoloJwtAuthnPerRoute_ClaimToHeaders) GetClaims

func (*SoloJwtAuthnPerRoute_ClaimToHeaders) ProtoMessage

func (*SoloJwtAuthnPerRoute_ClaimToHeaders) ProtoMessage()

func (*SoloJwtAuthnPerRoute_ClaimToHeaders) ProtoReflect added in v1.6.0

func (*SoloJwtAuthnPerRoute_ClaimToHeaders) Reset

func (*SoloJwtAuthnPerRoute_ClaimToHeaders) String

type StagedJwtAuthnPerRoute added in v1.6.4

type StagedJwtAuthnPerRoute struct {

	// Map from stage number to jwt config
	// This jwt config will only be processed by filters with the same stage number.
	JwtConfigs map[uint32]*SoloJwtAuthnPerRoute `` /* 180-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StagedJwtAuthnPerRoute) Descriptor deprecated added in v1.6.4

func (*StagedJwtAuthnPerRoute) Descriptor() ([]byte, []int)

Deprecated: Use StagedJwtAuthnPerRoute.ProtoReflect.Descriptor instead.

func (*StagedJwtAuthnPerRoute) GetJwtConfigs added in v1.6.4

func (x *StagedJwtAuthnPerRoute) GetJwtConfigs() map[uint32]*SoloJwtAuthnPerRoute

func (*StagedJwtAuthnPerRoute) ProtoMessage added in v1.6.4

func (*StagedJwtAuthnPerRoute) ProtoMessage()

func (*StagedJwtAuthnPerRoute) ProtoReflect added in v1.6.4

func (x *StagedJwtAuthnPerRoute) ProtoReflect() protoreflect.Message

func (*StagedJwtAuthnPerRoute) Reset added in v1.6.4

func (x *StagedJwtAuthnPerRoute) Reset()

func (*StagedJwtAuthnPerRoute) String added in v1.6.4

func (x *StagedJwtAuthnPerRoute) String() string

Jump to

Keyboard shortcuts

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