MCPcopy Index your code

hub / github.com/auth0/go-jwt-middleware / functions

Functions744 in github.com/auth0/go-jwt-middleware

MethodInfo
(msg string, args ...any)
middleware.go:42
MethodInfo
(msg string, args ...any)
option_test.go:796
MethodInfo
(msg string, args ...any)
core/core.go:23
MethodInfo
(msg string, args ...any)
core/core_test.go:49
MethodInfo
(msg string, args ...any)
integrations/grpc/interceptor_test.go:804
MethodKeyFunc
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
FunctionMustGetClaims
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
FunctionMustGetClaims
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
FunctionNewGreeterClient
(cc grpc.ClientConnInterface)
examples/grpc-example/proto/greeter_grpc.pb.go:35
MethodProtoMessage
()
examples/grpc-example/proto/greeter.pb.go:45
MethodProtoMessage
()
examples/grpc-example/proto/greeter.pb.go:94
MethodProtoMessage
()
examples/grpc-example/proto/greeter.pb.go:147
MethodProtoMessage
()
examples/grpc-example/proto/greeter.pb.go:188
MethodProtoReflect
()
examples/grpc-example/proto/greeter.pb.go:47
MethodProtoReflect
()
examples/grpc-example/proto/greeter.pb.go:96
MethodProtoReflect
()
examples/grpc-example/proto/greeter.pb.go:149
MethodProtoReflect
()
examples/grpc-example/proto/greeter.pb.go:190
MethodRecvMsg
(interface{})
integrations/grpc/interceptor_test.go:847
FunctionRegisterGreeterServer
(s grpc.ServiceRegistrar, srv GreeterServer)
examples/grpc-example/proto/greeter_grpc.pb.go:87
MethodReset
()
examples/grpc-example/proto/greeter.pb.go:32
MethodReset
()
examples/grpc-example/proto/greeter.pb.go:81
MethodReset
()
examples/grpc-example/proto/greeter.pb.go:134
MethodReset
()
examples/grpc-example/proto/greeter.pb.go:175
MethodSayHello
(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption)
examples/grpc-example/proto/greeter_grpc.pb.go:39
MethodSayHello
Sends a greeting (requires authentication)
examples/grpc-example/proto/greeter_grpc.pb.go:62
MethodSayHello
(context.Context, *HelloRequest)
examples/grpc-example/proto/greeter_grpc.pb.go:72
MethodSayHello
SayHello returns a greeting. Requires authentication.
examples/grpc-example/server/main.go:31
MethodSendHeader
(metadata.MD)
integrations/grpc/interceptor_test.go:836
MethodSendMsg
(interface{})
integrations/grpc/interceptor_test.go:843
MethodSetHeader
(metadata.MD)
integrations/grpc/interceptor_test.go:832
MethodSetTrailer
(metadata.MD)
integrations/grpc/interceptor_test.go:840
MethodString
()
examples/grpc-example/proto/greeter.pb.go:41
MethodString
()
examples/grpc-example/proto/greeter.pb.go:143
MethodString
()
examples/grpc-example/proto/greeter.pb.go:184
FunctionTestAPIGatewayProxyConfiguration
(t *testing.T)
examples/http-dpop-trusted-proxy/main_integration_test.go:110
FunctionTestAlgToJWX
(t *testing.T)
jwks/multi_issuer_provider_test.go:906
FunctionTestAllSignatureAlgorithms
(t *testing.T)
validator/validator_test.go:509
FunctionTestAuthHeaderTokenExtractorWithScheme
TestAuthHeaderTokenExtractorWithScheme tests the scheme-aware token extractor
extractor_test.go:447
FunctionTestAuthHeaderTokenExtractor_DPoP
Test AuthHeaderTokenExtractor with DPoP scheme
dpop_test.go:108
FunctionTestAuthHeaderTokenExtractor_MultipleHeaders
TestAuthHeaderTokenExtractor_MultipleHeaders tests the security feature for multiple Authorization headers
extractor_test.go:379
FunctionTestBuildSymmetricKeySet
(t *testing.T)
jwks/multi_issuer_provider_test.go:932
FunctionTestBuildWWWAuthenticateHeaders_DefaultCases
(t *testing.T)
error_handler_test.go:635
FunctionTestCacheControlBackgroundRefresh
TestCacheControlBackgroundRefresh tests that background refresh respects the new Cache-Control logic
jwks/provider_test.go:1389
FunctionTestCacheControlSecurity
TestCacheControlSecurity tests the security behavior: uses SHORTER of Cache-Control vs configured TTL
jwks/provider_test.go:1238
FunctionTestCachingProvider_RetriesDiscoveryAfterTransientFailure
(t *testing.T)
jwks/provider_test.go:986
FunctionTestCheckJWT_WithLogging
TestCheckJWT_WithLogging tests middleware with logging enabled to cover log branches
middleware_test.go:456
FunctionTestCheckJWT_WithTrustedProxies
(t *testing.T)
middleware_test.go:748
FunctionTestCheckTokenWithDPoP_BearerTokenWithCnf_MissingProof
(t *testing.T)
core/dpop_test.go:88
FunctionTestCheckTokenWithDPoP_BearerToken_DPoPRequired
(t *testing.T)
core/dpop_test.go:120
FunctionTestCheckTokenWithDPoP_BearerToken_Success
Test Bearer token scenarios
core/dpop_test.go:67
FunctionTestCheckTokenWithDPoP_DPoPDisabled_IgnoresProof
(t *testing.T)
core/dpop_test.go:522
FunctionTestCheckTokenWithDPoP_DPoPProofValidationFails
(t *testing.T)
core/dpop_test.go:582
FunctionTestCheckTokenWithDPoP_DPoPToken_HTMMismatch
(t *testing.T)
core/dpop_test.go:322
FunctionTestCheckTokenWithDPoP_DPoPToken_HTUMismatch
(t *testing.T)
core/dpop_test.go:372
FunctionTestCheckTokenWithDPoP_DPoPToken_IATExpired
(t *testing.T)
core/dpop_test.go:422
FunctionTestCheckTokenWithDPoP_DPoPToken_IATTooNew
(t *testing.T)
core/dpop_test.go:472
FunctionTestCheckTokenWithDPoP_DPoPToken_JKTMismatch
(t *testing.T)
core/dpop_test.go:273
FunctionTestCheckTokenWithDPoP_DPoPToken_NoCnfClaim
(t *testing.T)
core/dpop_test.go:244
FunctionTestCheckTokenWithDPoP_DPoPToken_Success
Test DPoP token scenarios
core/dpop_test.go:195
FunctionTestCheckTokenWithDPoP_EdgeCases
TestCheckTokenWithDPoP_EdgeCases tests additional edge cases
core/dpop_test.go:985
FunctionTestCheckTokenWithDPoP_EmptyToken_CredentialsOptional
(t *testing.T)
core/dpop_test.go:149
FunctionTestCheckTokenWithDPoP_EmptyToken_CredentialsRequired
(t *testing.T)
core/dpop_test.go:171
FunctionTestCheckTokenWithDPoP_LoggingPaths
TestCheckTokenWithDPoP_LoggingPaths tests logging branches for better coverage
core/dpop_test.go:1498
FunctionTestCheckTokenWithDPoP_NonTokenClaimsType
(t *testing.T)
core/dpop_test.go:620
FunctionTestCheckTokenWithDPoP_RFC9449_Section7_1_DPoPSchemeRequiresCnfClaim
============================================================================= RFC 9449 Section 7.1 Compliance Tests ==================================
core/dpop_test.go:1930
FunctionTestCheckTokenWithDPoP_RFC9449_Section7_2_BearerWithDPoPProofRejected
============================================================================= RFC 9449 Section 7.2 Compliance Tests ==================================
core/dpop_test.go:1814
FunctionTestCheckTokenWithDPoP_TokenValidationFails
(t *testing.T)
core/dpop_test.go:555
FunctionTestCheckTokenWithDPoP_WithLogger_BearerAccepted
(t *testing.T)
core/dpop_test.go:770
FunctionTestCheckTokenWithDPoP_WithLogger_BearerNotAllowed
(t *testing.T)
core/dpop_test.go:839
FunctionTestCheckTokenWithDPoP_WithLogger_DPoPDisabled
(t *testing.T)
core/dpop_test.go:866
FunctionTestCheckTokenWithDPoP_WithLogger_JKTMismatch
(t *testing.T)
core/dpop_test.go:937
FunctionTestCheckTokenWithDPoP_WithLogger_MissingProof
(t *testing.T)
core/dpop_test.go:804
FunctionTestCheckTokenWithDPoP_WithLogger_NoCnfClaim
(t *testing.T)
core/dpop_test.go:903
FunctionTestCheckTokenWithDPoP_WithLogger_Success
Test with logger to cover logger code paths
core/dpop_test.go:721
FunctionTestContextHelpers
(t *testing.T)
core/core_test.go:293
FunctionTestContextIsolation
TestContextIsolation tests that context values are properly isolated
core/context_test.go:193
FunctionTestConvertAuthScheme
TestConvertAuthScheme tests the convertAuthScheme function
middleware_test.go:1048
FunctionTestCookieTokenExtractor_EdgeCases
TestCookieTokenExtractor_EdgeCases tests edge cases for cookie extractor
extractor_test.go:288
FunctionTestCore_CheckToken
(t *testing.T)
core/core_test.go:113
FunctionTestCore_CheckToken_Context
(t *testing.T)
core/core_test.go:268
FunctionTestCustomErrorHandler
(t *testing.T)
integrations/grpc/interceptor_test.go:539
FunctionTestCustomProxyConfiguration
(t *testing.T)
examples/http-dpop-trusted-proxy/main_integration_test.go:221
FunctionTestCustomTokenExtractor
(t *testing.T)
integrations/grpc/interceptor_test.go:569
FunctionTestCustomTokenExtractor_Error
(t *testing.T)
integrations/grpc/interceptor_test.go:597
FunctionTestDPoPContext_Helpers
(t *testing.T)
core/dpop_context_test.go:14
FunctionTestDPoPDisabled_BearerDPoPToken
Bearer + valid_dpop_token → 200 OK (DPoP-bound tokens work as Bearer)
examples/http-dpop-disabled/main_integration_test.go:144
FunctionTestDPoPDisabled_BearerDPoPToken_WithProof
Bearer + valid_dpop_token + valid_proof → 200 OK (DPoP ignored)
examples/http-dpop-disabled/main_integration_test.go:95
FunctionTestDPoPDisabled_BearerInvalidToken_WithProof
Bearer invalid token with proof → 401 invalid_token
examples/http-dpop-disabled/main_integration_test.go:451
FunctionTestDPoPDisabled_BearerTokenWithDPoPHeaderIgnored
Bearer + valid_bearer_token + DPoP header → 200 OK (DPoP header ignored)
examples/http-dpop-disabled/main_integration_test.go:245
FunctionTestDPoPDisabled_DPoPInvalidToken_WithProof
DPoP invalid token with proof (rejected) → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:501
FunctionTestDPoPDisabled_DPoPSchemeRejected
DPoP + valid_dpop_token → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:188
FunctionTestDPoPDisabled_DPoPToken_InvalidProof
DPoP token with invalid proof (rejected) → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:552
FunctionTestDPoPDisabled_EmptyBearer_WithProof
============================================================================= Additional RFC 9449 Compliance Tests - DISABLED Mode ===================
examples/http-dpop-disabled/main_integration_test.go:400
FunctionTestDPoPDisabled_ExpiredBearerToken
(t *testing.T)
examples/http-dpop-disabled/main_integration_test.go:354
FunctionTestDPoPDisabled_InvalidBearerToken
Bearer + invalid_token → 401 invalid_token
examples/http-dpop-disabled/main_integration_test.go:315
FunctionTestDPoPDisabled_MalformedDPoPScheme
Malformed "DPoP dpop <valid_dpop_token>" → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:688
FunctionTestDPoPDisabled_MissingAuthorization_WithProof
(no Authorization) + valid_proof → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:738
FunctionTestDPoPDisabled_MissingToken
(t *testing.T)
examples/http-dpop-disabled/main_integration_test.go:288
FunctionTestDPoPDisabled_RandomScheme
Random scheme (rejected) → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:605
FunctionTestDPoPDisabled_UnsupportedScheme
unsupported_scheme foo → 400 invalid_request
examples/http-dpop-disabled/main_integration_test.go:648
← previousnext →301–400 of 744, ranked by callers