MCPcopy Index your code

hub / github.com/auth0/go-jwt-middleware / types & classes

Types & classes102 in github.com/auth0/go-jwt-middleware

↓ 16 callersTypeAliasSignatureAlgorithm
SignatureAlgorithm is a signature algorithm.
validator/validator.go:81
↓ 4 callersTypeAliasDPoPMode
DPoPMode represents the operational mode for DPoP token validation.
core/dpop.go:27
↓ 2 callersTypeAliasAuthScheme
AuthScheme represents the authorization scheme used in the request. This is used to enforce RFC 9449 Section 6.1 which specifies that Bearer tokens wi
core/dpop.go:15
InterfaceCache
Cache defines the interface for JWKS caching implementations. This abstraction allows swapping the underlying cache provider.
jwks/provider.go:26
StructCachingProvider
CachingProvider handles getting JWKS from the specified IssuerURL and caching them using an underlying cache implementation. It exposes KeyFunc which
jwks/provider.go:327
FuncTypeCachingProviderOption
============================================================================ CachingProvider Options =================================================
jwks/option.go:66
StructConfirmationClaim
ConfirmationClaim represents the cnf (confirmation) claim per RFC 7800 and RFC 9449. It contains the JWK SHA-256 thumbprint that binds the access toke
validator/claims.go:41
StructCore
Core is the framework-agnostic JWT validation engine. It contains the core logic for token validation without any dependency on specific transport pro
core/core.go:31
InterfaceCustomClaims
CustomClaims defines any custom data / claims wanted. The Validator will call the Validate function which is where custom validation logic can be defi
validator/claims.go:34
StructCustomClaims
CustomClaims contains custom data we want from the token.
examples/http-dpop-disabled/main.go:21
StructCustomClaims
CustomClaims contains custom data we want from the token.
examples/iris-example/custom_claims.go:9
StructCustomClaims
CustomClaims contains custom data we want from the token.
examples/http-dpop-required/main.go:21
StructCustomClaimsExample
CustomClaimsExample contains custom data we want from the token.
examples/http-dpop-trusted-proxy/main.go:21
StructCustomClaimsExample
CustomClaimsExample contains custom data we want from the token.
examples/gin-example/custom_claims.go:9
StructCustomClaimsExample
CustomClaimsExample contains custom data we want from the token.
examples/http-example/main.go:22
StructCustomClaimsExample
CustomClaimsExample contains custom data we want from the token.
examples/echo-example/custom_claims.go:9
StructCustomClaimsExample
CustomClaimsExample contains custom data we want from the token.
examples/http-dpop-example/main.go:21
StructDPoPContext
DPoPContext contains validated DPoP information for the application. This is created by Core after successful DPoP validation and can be stored in the
core/dpop.go:131
InterfaceDPoPProofClaims
DPoPProofClaims represents the essential claims extracted from a DPoP proof. This interface allows the core to work with different DPoP proof claim im
core/dpop.go:94
StructDPoPProofClaims
DPoPProofClaims represents the claims in a DPoP proof JWT per RFC 9449. These claims are extracted from the JWT sent in the DPoP HTTP header.
validator/dpop_claims.go:5
StructDiscoveryOptions
DiscoveryOptions controls optional security validations on OIDC discovery metadata.
internal/oidc/oidc.go:21
FuncTypeErrorHandler
ErrorHandler is a handler which is called when an error occurs in the JWTMiddleware. The handler determines the HTTP response when a token is not foun
error_handler.go:83
FuncTypeErrorHandler
ErrorHandler converts validation errors to gRPC status errors.
integrations/grpc/error_handler.go:12
StructErrorResponse
ErrorResponse represents a structured error response.
error_handler.go:86
FuncTypeExclusionHandler
ExclusionHandler is a function that determines whether a gRPC method should be excluded from JWT validation. It receives the full method name (e.g., "
integrations/grpc/interceptor.go:15
FuncTypeExclusionURLHandler
ExclusionURLHandler is a function that takes in a http.Request and returns true if the request should be excluded from JWT validation.
middleware.go:49
StructExtractedToken
ExtractedToken holds both the extracted token and the authorization scheme used. This allows the middleware to enforce that DPoP scheme requires a DPo
extractor.go:26
InterfaceGreeterClient
GreeterClient is the client API for Greeter service. For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.d
examples/grpc-example/proto/greeter_grpc.pb.go:24
InterfaceGreeterServer
GreeterServer is the server API for Greeter service. All implementations must embed UnimplementedGreeterServer for forward compatibility
examples/grpc-example/proto/greeter_grpc.pb.go:60
StructHealthCheckReply
Health check response.
examples/grpc-example/proto/greeter.pb.go:167
StructHealthCheckRequest
Health check request.
examples/grpc-example/proto/greeter.pb.go:128
StructHelloReply
The response message containing the greetings.
examples/grpc-example/proto/greeter.pb.go:72
StructHelloRequest
The request message containing the user's name.
examples/grpc-example/proto/greeter.pb.go:24
StructIssuerInfo
IssuerInfo contains observability information about a single managed issuer.
jwks/multi_issuer_provider.go:324
StructIssuerKeyConfig
IssuerKeyConfig configures key material for a specific issuer. Used with WithIssuerKeyConfig to support symmetric (HS256/HS384/HS512) issuers in MCD (
jwks/multi_issuer_provider.go:22
TypeAliasIssuerType
IssuerType represents the type of key management for an issuer.
jwks/multi_issuer_provider.go:314
StructJWTInterceptor
JWTInterceptor provides JWT validation for gRPC servers.
integrations/grpc/interceptor.go:18
StructJWTMiddleware
JWTMiddleware is a middleware that validates JWTs and makes claims available in the request context. It wraps the core validation engine and provides
middleware.go:18
TypeAliasKeySet
KeySet represents a set of JSON Web Keys. This interface abstracts the underlying JWKS implementation.
jwks/provider.go:22
InterfaceLogger
Logger defines an optional logging interface compatible with log/slog. This is the same interface used by core for consistent logging across the stack
middleware.go:40
InterfaceLogger
Logger defines an optional logging interface for the core middleware.
core/core.go:21
InterfaceLogger
Logger defines an optional logging interface compatible with log/slog. This is the same interface used by core for consistent logging across the stack
integrations/grpc/option.go:17
StructMultiIssuerProvider
MultiIssuerProvider handles JWKS for multiple issuers dynamically. It creates and caches per-issuer JWKS providers on-demand, automatically routing re
jwks/multi_issuer_provider.go:86
FuncTypeMultiIssuerProviderOption
============================================================================ MultiIssuerProvider Options =============================================
jwks/option.go:142
FuncTypeOption
Option configures the JWTMiddleware. Returns error for validation failures.
option.go:15
FuncTypeOption
Option is a function that configures the Core. Options return errors to enable validation during construction.
core/option.go:10
FuncTypeOption
Option is how options for the Validator are set up. Options return errors to enable validation during construction.
validator/option.go:13
FuncTypeOption
Option configures the JWT interceptor. Returns error for validation failures.
integrations/grpc/option.go:13
StructProvider
Provider handles getting JWKS from the specified IssuerURL and exposes KeyFunc which adheres to the keyFunc signature that the Validator requires. Mos
jwks/provider.go:36
FuncTypeProviderOption
============================================================================ Provider Options ========================================================
jwks/option.go:18
StructProviderStats
ProviderStats contains summary and per-issuer information about the MultiIssuerProvider's current state. Useful for monitoring dashboards and debuggin
jwks/multi_issuer_provider.go:341
StructRedisCache
RedisCache implements the jwks.Cache interface using Redis as the backing store. This is useful for multi-tenant applications with 100+ issuers to avo
examples/http-multi-issuer-redis-example/main.go:22
StructRegisteredClaims
RegisteredClaims represents public claim values (as specified in RFC 7519).
validator/claims.go:21
InterfaceTokenClaims
TokenClaims represents the essential claims from an access token. This interface allows the core to work with different token claim implementations.
core/dpop.go:120
FuncTypeTokenExtractor
TokenExtractor is a function that takes a request as input and returns an ExtractedToken containing both the token and its authorization scheme, or an
extractor.go:40
FuncTypeTokenExtractor
TokenExtractor extracts JWT tokens from gRPC metadata.
integrations/grpc/extractor.go:12
StructTrustedProxyConfig
TrustedProxyConfig defines which reverse proxy headers to trust. SECURITY WARNING: Only enable when behind a trusted reverse proxy! Enabling this in
proxy.go:31
StructUnimplementedGreeterServer
UnimplementedGreeterServer must be embedded to have forward compatible implementations.
examples/grpc-example/proto/greeter_grpc.pb.go:69
InterfaceUnsafeGreeterServer
UnsafeGreeterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods t
examples/grpc-example/proto/greeter_grpc.pb.go:83
StructValidatedClaims
ValidatedClaims is the struct that will be inserted into the context for the user. CustomClaims will be nil unless WithCustomClaims is passed to New.
validator/claims.go:10
StructValidationError
ValidationError wraps JWT validation errors with additional context. It provides structured error information that can be used for logging, metrics, a
core/errors.go:29
InterfaceValidator
Validator defines the interface for JWT and DPoP validation. Implementations should validate tokens and DPoP proofs, returning the validated claims.
core/core.go:15
StructValidator
Validator validates JWTs using the jwx v3 library.
validator/validator.go:69
StructWellKnownEndpoints
WellKnownEndpoints holds the well known OIDC endpoints.
internal/oidc/oidc.go:15
StructcacheEntry
examples/http-dynamic-issuer-example/main.go:26
StructcachedJWKS
jwks/provider.go:117
StructcachingProviderConfig
cachingProviderConfig holds internal configuration for creating a CachingProvider.
jwks/option.go:69
TypeAliascontextKey
contextKey is an unexported type for context keys to prevent collisions. Using an unexported type ensures that only this package can create context ke
core/context.go:8
TypeAliascontextKey
contextKey is an unexported type for context keys to prevent collisions. Using an unexported type ensures that only this package can create context ke
validator/validator.go:22
StructctxKey
core/core_test.go:270
StructerrorResponse
errorResponse mirrors the DefaultErrorHandler JSON response structure.
examples/http-example/main_integration_test.go:19
StructgreeterClient
examples/grpc-example/proto/greeter_grpc.pb.go:31
StructinvalidError
invalidError handles wrapping a JWT validation error with the concrete error ErrJWTInvalid. We do not expose this publicly because the interface metho
error_handler.go:470
StructissuerCache
issuerCache provides simple in-memory caching for issuer resolution
examples/http-dynamic-issuer-example/main.go:20
StructjwxCache
jwxCache wraps jwx's Cache to implement our Cache interface with proper concurrency handling. This adapter allows us to swap out the underlying cache
jwks/provider.go:110
StructlogCall
core/core_test.go:40
StructmockCache
mockCache is a test cache implementation
jwks/provider_test.go:1038
StructmockDPoPProofClaims
core/dpop_test.go:47
StructmockErrorCache
mockErrorCache is a cache implementation that always returns errors
jwks/provider_test.go:1049
StructmockLogger
mockLogger is a test implementation of the Logger interface
option_test.go:785
StructmockLogger
mockLogger is a mock implementation of Logger for testing.
core/core_test.go:33
StructmockLogger
mockLogger implements Logger interface for testing
integrations/grpc/interceptor_test.go:791
StructmockMultiIssuerCache
mockMultiIssuerCache is a mock implementation of the Cache interface for testing multi-issuer providers
jwks/multi_issuer_provider_test.go:462
StructmockOIDCServer
mockOIDCServer creates a mock OIDC/JWKS server for testing
examples/http-multi-issuer-example/main_integration_test.go:24
StructmockOIDCServer
mockOIDCServer creates a mock OIDC/JWKS server for testing
examples/http-dynamic-issuer-example/main_integration_test.go:24
StructmockOIDCServer
mockOIDCServer creates a mock OIDC/JWKS server for testing
examples/http-multi-issuer-redis-example/main_integration_test.go:26
StructmockServerStream
mockServerStream implements grpc.ServerStream for testing
integrations/grpc/interceptor_test.go:823
StructmockTokenClaims
core/dpop_test.go:34
StructmockTokenValidator
Mock implementations for testing
core/dpop_test.go:15
StructmockValidator
mockValidator is a mock implementation of Validator for testing.
core/core_test.go:13
StructmultiIssuerConfig
multiIssuerConfig holds internal configuration for creating a MultiIssuerProvider.
jwks/option.go:145
StructproviderEntry
providerEntry wraps a CachingProvider with metadata for LRU tracking
jwks/multi_issuer_provider.go:100
Structserver
server implements the Greeter service.
examples/grpc-example/server/main.go:26
StructtenantContextKey
tenantContextKey is the key for storing tenant ID in request context
examples/http-dynamic-issuer-example/main.go:17
StructtestClaims
core/core_test.go:295
StructtestClaims
validator/validator_test.go:18
TypeAliastestContextKey
core/dpop_context_test.go:12
StructvalidatorAdapter
validatorAdapter adapts the validator.Validator to the core.Validator interface
option.go:18
StructvalidatorAdapter
validatorAdapter adapts validator.Validator to core.Validator interface.
integrations/grpc/option.go:25
StructwrappedServerStream
wrappedServerStream wraps grpc.ServerStream with a custom context.
integrations/grpc/interceptor.go:233
next →1–100 of 102, ranked by callers