Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/auth0/go-jwt-middleware
/ types & classes
Types & classes
102 in github.com/auth0/go-jwt-middleware
⨍
Functions
744
◇
Types & classes
102
↓ 16 callers
TypeAlias
SignatureAlgorithm
SignatureAlgorithm is a signature algorithm.
validator/validator.go:81
↓ 4 callers
TypeAlias
DPoPMode
DPoPMode represents the operational mode for DPoP token validation.
core/dpop.go:27
↓ 2 callers
TypeAlias
AuthScheme
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
Interface
Cache
Cache defines the interface for JWKS caching implementations. This abstraction allows swapping the underlying cache provider.
jwks/provider.go:26
Struct
CachingProvider
CachingProvider handles getting JWKS from the specified IssuerURL and caching them using an underlying cache implementation. It exposes KeyFunc which
jwks/provider.go:327
FuncType
CachingProviderOption
============================================================================ CachingProvider Options =================================================
jwks/option.go:66
Struct
ConfirmationClaim
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
Struct
Core
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
Interface
CustomClaims
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
Struct
CustomClaims
CustomClaims contains custom data we want from the token.
examples/http-dpop-disabled/main.go:21
Struct
CustomClaims
CustomClaims contains custom data we want from the token.
examples/iris-example/custom_claims.go:9
Struct
CustomClaims
CustomClaims contains custom data we want from the token.
examples/http-dpop-required/main.go:21
Struct
CustomClaimsExample
CustomClaimsExample contains custom data we want from the token.
examples/http-dpop-trusted-proxy/main.go:21
Struct
CustomClaimsExample
CustomClaimsExample contains custom data we want from the token.
examples/gin-example/custom_claims.go:9
Struct
CustomClaimsExample
CustomClaimsExample contains custom data we want from the token.
examples/http-example/main.go:22
Struct
CustomClaimsExample
CustomClaimsExample contains custom data we want from the token.
examples/echo-example/custom_claims.go:9
Struct
CustomClaimsExample
CustomClaimsExample contains custom data we want from the token.
examples/http-dpop-example/main.go:21
Struct
DPoPContext
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
Interface
DPoPProofClaims
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
Struct
DPoPProofClaims
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
Struct
DiscoveryOptions
DiscoveryOptions controls optional security validations on OIDC discovery metadata.
internal/oidc/oidc.go:21
FuncType
ErrorHandler
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
FuncType
ErrorHandler
ErrorHandler converts validation errors to gRPC status errors.
integrations/grpc/error_handler.go:12
Struct
ErrorResponse
ErrorResponse represents a structured error response.
error_handler.go:86
FuncType
ExclusionHandler
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
FuncType
ExclusionURLHandler
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
Struct
ExtractedToken
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
Interface
GreeterClient
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
Interface
GreeterServer
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
Struct
HealthCheckReply
Health check response.
examples/grpc-example/proto/greeter.pb.go:167
Struct
HealthCheckRequest
Health check request.
examples/grpc-example/proto/greeter.pb.go:128
Struct
HelloReply
The response message containing the greetings.
examples/grpc-example/proto/greeter.pb.go:72
Struct
HelloRequest
The request message containing the user's name.
examples/grpc-example/proto/greeter.pb.go:24
Struct
IssuerInfo
IssuerInfo contains observability information about a single managed issuer.
jwks/multi_issuer_provider.go:324
Struct
IssuerKeyConfig
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
TypeAlias
IssuerType
IssuerType represents the type of key management for an issuer.
jwks/multi_issuer_provider.go:314
Struct
JWTInterceptor
JWTInterceptor provides JWT validation for gRPC servers.
integrations/grpc/interceptor.go:18
Struct
JWTMiddleware
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
TypeAlias
KeySet
KeySet represents a set of JSON Web Keys. This interface abstracts the underlying JWKS implementation.
jwks/provider.go:22
Interface
Logger
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
Interface
Logger
Logger defines an optional logging interface for the core middleware.
core/core.go:21
Interface
Logger
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
Struct
MultiIssuerProvider
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
FuncType
MultiIssuerProviderOption
============================================================================ MultiIssuerProvider Options =============================================
jwks/option.go:142
FuncType
Option
Option configures the JWTMiddleware. Returns error for validation failures.
option.go:15
FuncType
Option
Option is a function that configures the Core. Options return errors to enable validation during construction.
core/option.go:10
FuncType
Option
Option is how options for the Validator are set up. Options return errors to enable validation during construction.
validator/option.go:13
FuncType
Option
Option configures the JWT interceptor. Returns error for validation failures.
integrations/grpc/option.go:13
Struct
Provider
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
FuncType
ProviderOption
============================================================================ Provider Options ========================================================
jwks/option.go:18
Struct
ProviderStats
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
Struct
RedisCache
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
Struct
RegisteredClaims
RegisteredClaims represents public claim values (as specified in RFC 7519).
validator/claims.go:21
Interface
TokenClaims
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
FuncType
TokenExtractor
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
FuncType
TokenExtractor
TokenExtractor extracts JWT tokens from gRPC metadata.
integrations/grpc/extractor.go:12
Struct
TrustedProxyConfig
TrustedProxyConfig defines which reverse proxy headers to trust. SECURITY WARNING: Only enable when behind a trusted reverse proxy! Enabling this in
proxy.go:31
Struct
UnimplementedGreeterServer
UnimplementedGreeterServer must be embedded to have forward compatible implementations.
examples/grpc-example/proto/greeter_grpc.pb.go:69
Interface
UnsafeGreeterServer
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
Struct
ValidatedClaims
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
Struct
ValidationError
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
Interface
Validator
Validator defines the interface for JWT and DPoP validation. Implementations should validate tokens and DPoP proofs, returning the validated claims.
core/core.go:15
Struct
Validator
Validator validates JWTs using the jwx v3 library.
validator/validator.go:69
Struct
WellKnownEndpoints
WellKnownEndpoints holds the well known OIDC endpoints.
internal/oidc/oidc.go:15
Struct
cacheEntry
examples/http-dynamic-issuer-example/main.go:26
Struct
cachedJWKS
jwks/provider.go:117
Struct
cachingProviderConfig
cachingProviderConfig holds internal configuration for creating a CachingProvider.
jwks/option.go:69
TypeAlias
contextKey
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
TypeAlias
contextKey
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
Struct
ctxKey
core/core_test.go:270
Struct
errorResponse
errorResponse mirrors the DefaultErrorHandler JSON response structure.
examples/http-example/main_integration_test.go:19
Struct
greeterClient
examples/grpc-example/proto/greeter_grpc.pb.go:31
Struct
invalidError
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
Struct
issuerCache
issuerCache provides simple in-memory caching for issuer resolution
examples/http-dynamic-issuer-example/main.go:20
Struct
jwxCache
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
Struct
logCall
core/core_test.go:40
Struct
mockCache
mockCache is a test cache implementation
jwks/provider_test.go:1038
Struct
mockDPoPProofClaims
core/dpop_test.go:47
Struct
mockErrorCache
mockErrorCache is a cache implementation that always returns errors
jwks/provider_test.go:1049
Struct
mockLogger
mockLogger is a test implementation of the Logger interface
option_test.go:785
Struct
mockLogger
mockLogger is a mock implementation of Logger for testing.
core/core_test.go:33
Struct
mockLogger
mockLogger implements Logger interface for testing
integrations/grpc/interceptor_test.go:791
Struct
mockMultiIssuerCache
mockMultiIssuerCache is a mock implementation of the Cache interface for testing multi-issuer providers
jwks/multi_issuer_provider_test.go:462
Struct
mockOIDCServer
mockOIDCServer creates a mock OIDC/JWKS server for testing
examples/http-multi-issuer-example/main_integration_test.go:24
Struct
mockOIDCServer
mockOIDCServer creates a mock OIDC/JWKS server for testing
examples/http-dynamic-issuer-example/main_integration_test.go:24
Struct
mockOIDCServer
mockOIDCServer creates a mock OIDC/JWKS server for testing
examples/http-multi-issuer-redis-example/main_integration_test.go:26
Struct
mockServerStream
mockServerStream implements grpc.ServerStream for testing
integrations/grpc/interceptor_test.go:823
Struct
mockTokenClaims
core/dpop_test.go:34
Struct
mockTokenValidator
Mock implementations for testing
core/dpop_test.go:15
Struct
mockValidator
mockValidator is a mock implementation of Validator for testing.
core/core_test.go:13
Struct
multiIssuerConfig
multiIssuerConfig holds internal configuration for creating a MultiIssuerProvider.
jwks/option.go:145
Struct
providerEntry
providerEntry wraps a CachingProvider with metadata for LRU tracking
jwks/multi_issuer_provider.go:100
Struct
server
server implements the Greeter service.
examples/grpc-example/server/main.go:26
Struct
tenantContextKey
tenantContextKey is the key for storing tenant ID in request context
examples/http-dynamic-issuer-example/main.go:17
Struct
testClaims
core/core_test.go:295
Struct
testClaims
validator/validator_test.go:18
TypeAlias
testContextKey
core/dpop_context_test.go:12
Struct
validatorAdapter
validatorAdapter adapts the validator.Validator to the core.Validator interface
option.go:18
Struct
validatorAdapter
validatorAdapter adapts validator.Validator to core.Validator interface.
integrations/grpc/option.go:25
Struct
wrappedServerStream
wrappedServerStream wraps grpc.ServerStream with a custom context.
integrations/grpc/interceptor.go:233
next →
1–100 of 102, ranked by callers