Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/auth0/go-jwt-middleware
/ functions
Functions
744 in github.com/auth0/go-jwt-middleware
⨍
Functions
744
◇
Types & classes
102
Method
Info
(msg string, args ...any)
middleware.go:42
Method
Info
(msg string, args ...any)
option_test.go:796
Method
Info
(msg string, args ...any)
core/core.go:23
Method
Info
(msg string, args ...any)
core/core_test.go:49
Method
Info
(msg string, args ...any)
integrations/grpc/interceptor_test.go:804
Method
KeyFunc
KeyFunc adheres to the keyFunc signature that the Validator requires. While it returns an interface to adhere to keyFunc, as long as the error is nil
jwks/provider.go:79
Function
MustGetClaims
MustGetClaims retrieves claims from the context or panics. Use only when you are certain claims exist (e.g., after middleware has run). Example: cl
middleware.go:184
Function
MustGetClaims
MustGetClaims retrieves claims from the context or panics. SAFETY: Only use this function when you are certain claims exist in the context: - After t
integrations/grpc/claims.go:38
Function
NewGreeterClient
(cc grpc.ClientConnInterface)
examples/grpc-example/proto/greeter_grpc.pb.go:35
Method
ProtoMessage
()
examples/grpc-example/proto/greeter.pb.go:45
Method
ProtoMessage
()
examples/grpc-example/proto/greeter.pb.go:94
Method
ProtoMessage
()
examples/grpc-example/proto/greeter.pb.go:147
Method
ProtoMessage
()
examples/grpc-example/proto/greeter.pb.go:188
Method
ProtoReflect
()
examples/grpc-example/proto/greeter.pb.go:47
Method
ProtoReflect
()
examples/grpc-example/proto/greeter.pb.go:96
Method
ProtoReflect
()
examples/grpc-example/proto/greeter.pb.go:149
Method
ProtoReflect
()
examples/grpc-example/proto/greeter.pb.go:190
Method
RecvMsg
(interface{})
integrations/grpc/interceptor_test.go:847
Function
RegisterGreeterServer
(s grpc.ServiceRegistrar, srv GreeterServer)
examples/grpc-example/proto/greeter_grpc.pb.go:87
Method
Reset
()
examples/grpc-example/proto/greeter.pb.go:32
Method
Reset
()
examples/grpc-example/proto/greeter.pb.go:81
Method
Reset
()
examples/grpc-example/proto/greeter.pb.go:134
Method
Reset
()
examples/grpc-example/proto/greeter.pb.go:175
Method
SayHello
(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption)
examples/grpc-example/proto/greeter_grpc.pb.go:39
Method
SayHello
Sends a greeting (requires authentication)
examples/grpc-example/proto/greeter_grpc.pb.go:62
Method
SayHello
(context.Context, *HelloRequest)
examples/grpc-example/proto/greeter_grpc.pb.go:72
Method
SayHello
SayHello returns a greeting. Requires authentication.
examples/grpc-example/server/main.go:31
Method
SendHeader
(metadata.MD)
integrations/grpc/interceptor_test.go:836
Method
SendMsg
(interface{})
integrations/grpc/interceptor_test.go:843
Method
SetHeader
(metadata.MD)
integrations/grpc/interceptor_test.go:832
Method
SetTrailer
(metadata.MD)
integrations/grpc/interceptor_test.go:840
Method
String
()
examples/grpc-example/proto/greeter.pb.go:41
Method
String
()
examples/grpc-example/proto/greeter.pb.go:143
Method
String
()
examples/grpc-example/proto/greeter.pb.go:184
Function
TestAPIGatewayProxyConfiguration
(t *testing.T)
examples/http-dpop-trusted-proxy/main_integration_test.go:110
Function
TestAlgToJWX
(t *testing.T)
jwks/multi_issuer_provider_test.go:906
Function
TestAllSignatureAlgorithms
(t *testing.T)
validator/validator_test.go:509
Function
TestAuthHeaderTokenExtractorWithScheme
TestAuthHeaderTokenExtractorWithScheme tests the scheme-aware token extractor
extractor_test.go:447
Function
TestAuthHeaderTokenExtractor_DPoP
Test AuthHeaderTokenExtractor with DPoP scheme
dpop_test.go:108
Function
TestAuthHeaderTokenExtractor_MultipleHeaders
TestAuthHeaderTokenExtractor_MultipleHeaders tests the security feature for multiple Authorization headers
extractor_test.go:379
Function
TestBuildSymmetricKeySet
(t *testing.T)
jwks/multi_issuer_provider_test.go:932
Function
TestBuildWWWAuthenticateHeaders_DefaultCases
(t *testing.T)
error_handler_test.go:635
Function
TestCacheControlBackgroundRefresh
TestCacheControlBackgroundRefresh tests that background refresh respects the new Cache-Control logic
jwks/provider_test.go:1389
Function
TestCacheControlSecurity
TestCacheControlSecurity tests the security behavior: uses SHORTER of Cache-Control vs configured TTL
jwks/provider_test.go:1238
Function
TestCachingProvider_RetriesDiscoveryAfterTransientFailure
(t *testing.T)
jwks/provider_test.go:986
Function
TestCheckJWT_WithLogging
TestCheckJWT_WithLogging tests middleware with logging enabled to cover log branches
middleware_test.go:456
Function
TestCheckJWT_WithTrustedProxies
(t *testing.T)
middleware_test.go:748
Function
TestCheckTokenWithDPoP_BearerTokenWithCnf_MissingProof
(t *testing.T)
core/dpop_test.go:88
Function
TestCheckTokenWithDPoP_BearerToken_DPoPRequired
(t *testing.T)
core/dpop_test.go:120
Function
TestCheckTokenWithDPoP_BearerToken_Success
Test Bearer token scenarios
core/dpop_test.go:67
Function
TestCheckTokenWithDPoP_DPoPDisabled_IgnoresProof
(t *testing.T)
core/dpop_test.go:522
Function
TestCheckTokenWithDPoP_DPoPProofValidationFails
(t *testing.T)
core/dpop_test.go:582
Function
TestCheckTokenWithDPoP_DPoPToken_HTMMismatch
(t *testing.T)
core/dpop_test.go:322
Function
TestCheckTokenWithDPoP_DPoPToken_HTUMismatch
(t *testing.T)
core/dpop_test.go:372
Function
TestCheckTokenWithDPoP_DPoPToken_IATExpired
(t *testing.T)
core/dpop_test.go:422
Function
TestCheckTokenWithDPoP_DPoPToken_IATTooNew
(t *testing.T)
core/dpop_test.go:472
Function
TestCheckTokenWithDPoP_DPoPToken_JKTMismatch
(t *testing.T)
core/dpop_test.go:273
Function
TestCheckTokenWithDPoP_DPoPToken_NoCnfClaim
(t *testing.T)
core/dpop_test.go:244
Function
TestCheckTokenWithDPoP_DPoPToken_Success
Test DPoP token scenarios
core/dpop_test.go:195
Function
TestCheckTokenWithDPoP_EdgeCases
TestCheckTokenWithDPoP_EdgeCases tests additional edge cases
core/dpop_test.go:985
Function
TestCheckTokenWithDPoP_EmptyToken_CredentialsOptional
(t *testing.T)
core/dpop_test.go:149
Function
TestCheckTokenWithDPoP_EmptyToken_CredentialsRequired
(t *testing.T)
core/dpop_test.go:171
Function
TestCheckTokenWithDPoP_LoggingPaths
TestCheckTokenWithDPoP_LoggingPaths tests logging branches for better coverage
core/dpop_test.go:1498
Function
TestCheckTokenWithDPoP_NonTokenClaimsType
(t *testing.T)
core/dpop_test.go:620
Function
TestCheckTokenWithDPoP_RFC9449_Section7_1_DPoPSchemeRequiresCnfClaim
============================================================================= RFC 9449 Section 7.1 Compliance Tests ==================================
core/dpop_test.go:1930
Function
TestCheckTokenWithDPoP_RFC9449_Section7_2_BearerWithDPoPProofRejected
============================================================================= RFC 9449 Section 7.2 Compliance Tests ==================================
core/dpop_test.go:1814
Function
TestCheckTokenWithDPoP_TokenValidationFails
(t *testing.T)
core/dpop_test.go:555
Function
TestCheckTokenWithDPoP_WithLogger_BearerAccepted
(t *testing.T)
core/dpop_test.go:770
Function
TestCheckTokenWithDPoP_WithLogger_BearerNotAllowed
(t *testing.T)
core/dpop_test.go:839
Function
TestCheckTokenWithDPoP_WithLogger_DPoPDisabled
(t *testing.T)
core/dpop_test.go:866
Function
TestCheckTokenWithDPoP_WithLogger_JKTMismatch
(t *testing.T)
core/dpop_test.go:937
Function
TestCheckTokenWithDPoP_WithLogger_MissingProof
(t *testing.T)
core/dpop_test.go:804
Function
TestCheckTokenWithDPoP_WithLogger_NoCnfClaim
(t *testing.T)
core/dpop_test.go:903
Function
TestCheckTokenWithDPoP_WithLogger_Success
Test with logger to cover logger code paths
core/dpop_test.go:721
Function
TestContextHelpers
(t *testing.T)
core/core_test.go:293
Function
TestContextIsolation
TestContextIsolation tests that context values are properly isolated
core/context_test.go:193
Function
TestConvertAuthScheme
TestConvertAuthScheme tests the convertAuthScheme function
middleware_test.go:1048
Function
TestCookieTokenExtractor_EdgeCases
TestCookieTokenExtractor_EdgeCases tests edge cases for cookie extractor
extractor_test.go:288
Function
TestCore_CheckToken
(t *testing.T)
core/core_test.go:113
Function
TestCore_CheckToken_Context
(t *testing.T)
core/core_test.go:268
Function
TestCustomErrorHandler
(t *testing.T)
integrations/grpc/interceptor_test.go:539
Function
TestCustomProxyConfiguration
(t *testing.T)
examples/http-dpop-trusted-proxy/main_integration_test.go:221
Function
TestCustomTokenExtractor
(t *testing.T)
integrations/grpc/interceptor_test.go:569
Function
TestCustomTokenExtractor_Error
(t *testing.T)
integrations/grpc/interceptor_test.go:597
Function
TestDPoPContext_Helpers
(t *testing.T)
core/dpop_context_test.go:14
Function
TestDPoPDisabled_BearerDPoPToken
Bearer + valid_dpop_token → 200 OK (DPoP-bound tokens work as Bearer)
examples/http-dpop-disabled/main_integration_test.go:144
Function
TestDPoPDisabled_BearerDPoPToken_WithProof
Bearer + valid_dpop_token + valid_proof → 200 OK (DPoP ignored)
examples/http-dpop-disabled/main_integration_test.go:95
Function
TestDPoPDisabled_BearerInvalidToken_WithProof
Bearer invalid token with proof → 401 invalid_token
examples/http-dpop-disabled/main_integration_test.go:451
Function
TestDPoPDisabled_BearerTokenWithDPoPHeaderIgnored
Bearer + valid_bearer_token + DPoP header → 200 OK (DPoP header ignored)
examples/http-dpop-disabled/main_integration_test.go:245
Function
TestDPoPDisabled_DPoPInvalidToken_WithProof
DPoP invalid token with proof (rejected) → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:501
Function
TestDPoPDisabled_DPoPSchemeRejected
DPoP + valid_dpop_token → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:188
Function
TestDPoPDisabled_DPoPToken_InvalidProof
DPoP token with invalid proof (rejected) → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:552
Function
TestDPoPDisabled_EmptyBearer_WithProof
============================================================================= Additional RFC 9449 Compliance Tests - DISABLED Mode ===================
examples/http-dpop-disabled/main_integration_test.go:400
Function
TestDPoPDisabled_ExpiredBearerToken
(t *testing.T)
examples/http-dpop-disabled/main_integration_test.go:354
Function
TestDPoPDisabled_InvalidBearerToken
Bearer + invalid_token → 401 invalid_token
examples/http-dpop-disabled/main_integration_test.go:315
Function
TestDPoPDisabled_MalformedDPoPScheme
Malformed "DPoP dpop <valid_dpop_token>" → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:688
Function
TestDPoPDisabled_MissingAuthorization_WithProof
(no Authorization) + valid_proof → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:738
Function
TestDPoPDisabled_MissingToken
(t *testing.T)
examples/http-dpop-disabled/main_integration_test.go:288
Function
TestDPoPDisabled_RandomScheme
Random scheme (rejected) → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:605
Function
TestDPoPDisabled_UnsupportedScheme
unsupported_scheme foo → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:648
← previous
next →
301–400 of 744, ranked by callers