MCPcopy Create free account

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

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

FunctionTestDPoPDisabled_ValidBearerToken
Bearer + valid_bearer_token → 200 OK
examples/http-dpop-disabled/main_integration_test.go:59
FunctionTestDPoPHeaderExtractor
Test DPoPHeaderExtractor
dpop_test.go:16
FunctionTestDPoPModeConstants
(t *testing.T)
option_test.go:969
FunctionTestDPoPMode_String
Test DPoP mode
core/dpop_test.go:650
FunctionTestDPoPProofClaims_GetterMethods
(t *testing.T)
validator/claims_test.go:61
FunctionTestDPoPRequired_BearerDPoPToken
Bearer + valid_dpop_token → 400 invalid_request
examples/http-dpop-required/main_integration_test.go:545
FunctionTestDPoPRequired_BearerInvalidToken
Bearer + invalid_token → 400 invalid_request
examples/http-dpop-required/main_integration_test.go:457
FunctionTestDPoPRequired_BearerInvalidToken_WithProof
Bearer + invalid_token + valid_proof → 400 invalid_request
examples/http-dpop-required/main_integration_test.go:497
FunctionTestDPoPRequired_BearerScheme_DPoPToken_WithProof
============================================================================= Additional RFC 9449 Compliance Tests - REQUIRED Mode ===================
examples/http-dpop-required/main_integration_test.go:354
FunctionTestDPoPRequired_BearerTokenRejected
(t *testing.T)
examples/http-dpop-required/main_integration_test.go:109
FunctionTestDPoPRequired_DPoPInvalidToken_WithProof
DPoP + invalid_token + valid_proof → 401 invalid_token
examples/http-dpop-required/main_integration_test.go:749
FunctionTestDPoPRequired_DPoPScheme_BearerToken_WithProof
DPoP + valid_bearer_token + valid_proof → 401 invalid_token
examples/http-dpop-required/main_integration_test.go:593
FunctionTestDPoPRequired_DPoPTokenWithoutProof
DPoP + valid_dpop_token (no proof) → 400 invalid_request
examples/http-dpop-required/main_integration_test.go:162
FunctionTestDPoPRequired_EmptyBearer_WithProof
Bearer + empty + valid_proof → 400 invalid_request
examples/http-dpop-required/main_integration_test.go:408
FunctionTestDPoPRequired_ExpiredDPoPProof
(t *testing.T)
examples/http-dpop-required/main_integration_test.go:241
FunctionTestDPoPRequired_InvalidDPoPProof
(t *testing.T)
examples/http-dpop-required/main_integration_test.go:212
FunctionTestDPoPRequired_MalformedDPoPScheme
Malformed "DPoP dpop <valid_dpop_token>" → 400 invalid_request
examples/http-dpop-required/main_integration_test.go:843
FunctionTestDPoPRequired_MissingAuthorization
(no Authorization) + valid_proof → 400 invalid_request
examples/http-dpop-required/main_integration_test.go:702
FunctionTestDPoPRequired_MissingToken
(t *testing.T)
examples/http-dpop-required/main_integration_test.go:133
FunctionTestDPoPRequired_MultipleDPoPHeaders
DPoP + valid_dpop_token + multiple proofs → 400 invalid_dpop_proof
examples/http-dpop-required/main_integration_test.go:891
FunctionTestDPoPRequired_RandomScheme
random_string + valid_dpop_token + valid_proof → 400 invalid_request
examples/http-dpop-required/main_integration_test.go:649
FunctionTestDPoPRequired_SymmetricAlgorithmRejected
Test that symmetric algorithms (HS256) are rejected for DPoP proofs Per RFC 9449, DPoP proofs MUST use asymmetric algorithms
examples/http-dpop-required/main_integration_test.go:276
FunctionTestDPoPRequired_UnsupportedScheme
unsupported_scheme foo → 400 invalid_request
examples/http-dpop-required/main_integration_test.go:805
FunctionTestDPoPRequired_ValidDPoPToken
(t *testing.T)
examples/http-dpop-required/main_integration_test.go:67
FunctionTestDPoPRequired_WWWAuthenticateWithAlgs
Test WWW-Authenticate header contains DPoP scheme with algs parameter
examples/http-dpop-required/main_integration_test.go:318
FunctionTestDefaultErrorHandler
(t *testing.T)
error_handler_test.go:16
FunctionTestDefaultErrorHandler_ConfigErrors
(t *testing.T)
integrations/grpc/error_handler_test.go:240
FunctionTestDefaultErrorHandler_DPoPAllowed_DualChallenges
(t *testing.T)
error_handler_test.go:344
FunctionTestDefaultErrorHandler_DPoPErrors
(t *testing.T)
error_handler_test.go:183
FunctionTestDefaultErrorHandler_EdgeCases
(t *testing.T)
error_handler_test.go:533
FunctionTestDefaultErrorHandler_ExtractorError_InvalidFormat
(t *testing.T)
integrations/grpc/error_handler_test.go:177
FunctionTestDefaultErrorHandler_ExtractorError_MultipleHeaders
(t *testing.T)
integrations/grpc/error_handler_test.go:185
FunctionTestDefaultErrorHandler_ExtractorError_UnsupportedScheme
(t *testing.T)
integrations/grpc/error_handler_test.go:193
FunctionTestDefaultErrorHandler_GenericError
(t *testing.T)
integrations/grpc/error_handler_test.go:133
FunctionTestDefaultErrorHandler_InvalidAlgorithm
(t *testing.T)
integrations/grpc/error_handler_test.go:83
FunctionTestDefaultErrorHandler_InvalidAudience
(t *testing.T)
integrations/grpc/error_handler_test.go:53
FunctionTestDefaultErrorHandler_InvalidClaims
(t *testing.T)
integrations/grpc/error_handler_test.go:263
FunctionTestDefaultErrorHandler_InvalidIssuer
(t *testing.T)
integrations/grpc/error_handler_test.go:43
FunctionTestDefaultErrorHandler_InvalidRequest
(t *testing.T)
integrations/grpc/error_handler_test.go:113
FunctionTestDefaultErrorHandler_InvalidSignature
(t *testing.T)
integrations/grpc/error_handler_test.go:63
FunctionTestDefaultErrorHandler_InvalidToken
(t *testing.T)
integrations/grpc/error_handler_test.go:123
FunctionTestDefaultErrorHandler_JWKSErrors_UseErrorCodes
(t *testing.T)
integrations/grpc/error_handler_test.go:201
FunctionTestDefaultErrorHandler_JWKSFetchFailed
(t *testing.T)
integrations/grpc/error_handler_test.go:93
FunctionTestDefaultErrorHandler_JWKSKeyNotFound
(t *testing.T)
integrations/grpc/error_handler_test.go:103
FunctionTestDefaultErrorHandler_JWTMissing
(t *testing.T)
integrations/grpc/error_handler_test.go:14
FunctionTestDefaultErrorHandler_NilError
(t *testing.T)
integrations/grpc/error_handler_test.go:143
FunctionTestDefaultErrorHandler_TokenExpired
(t *testing.T)
integrations/grpc/error_handler_test.go:23
FunctionTestDefaultErrorHandler_TokenMalformed
(t *testing.T)
integrations/grpc/error_handler_test.go:73
FunctionTestDefaultErrorHandler_TokenNotYetValid
(t *testing.T)
integrations/grpc/error_handler_test.go:33
FunctionTestDefaultErrorHandler_UnknownErrorCode_DefaultsToUnauthenticated
(t *testing.T)
integrations/grpc/error_handler_test.go:148
FunctionTestDynamicIssuerExample_CacheBehavior
(t *testing.T)
examples/http-dynamic-issuer-example/main_integration_test.go:338
FunctionTestDynamicIssuerExample_ExpiredToken
(t *testing.T)
examples/http-dynamic-issuer-example/main_integration_test.go:431
FunctionTestDynamicIssuerExample_InvalidToken
(t *testing.T)
examples/http-dynamic-issuer-example/main_integration_test.go:316
FunctionTestDynamicIssuerExample_MissingTenantHeader
(t *testing.T)
examples/http-dynamic-issuer-example/main_integration_test.go:210
FunctionTestDynamicIssuerExample_MissingToken
(t *testing.T)
examples/http-dynamic-issuer-example/main_integration_test.go:294
FunctionTestDynamicIssuerExample_SSRFPrevention
(t *testing.T)
examples/http-dynamic-issuer-example/main_integration_test.go:392
FunctionTestDynamicIssuerExample_Tenant1Token
(t *testing.T)
examples/http-dynamic-issuer-example/main_integration_test.go:99
FunctionTestDynamicIssuerExample_Tenant2Token
(t *testing.T)
examples/http-dynamic-issuer-example/main_integration_test.go:133
FunctionTestDynamicIssuerExample_Tenant3MultipleIssuers
(t *testing.T)
examples/http-dynamic-issuer-example/main_integration_test.go:167
FunctionTestDynamicIssuerExample_UnknownTenant
(t *testing.T)
examples/http-dynamic-issuer-example/main_integration_test.go:240
FunctionTestDynamicIssuerExample_WrongTenantForToken
(t *testing.T)
examples/http-dynamic-issuer-example/main_integration_test.go:265
FunctionTestEchoExample_InvalidToken
(t *testing.T)
examples/echo-example/main_integration_test.go:66
FunctionTestEchoExample_MissingToken
(t *testing.T)
examples/echo-example/main_integration_test.go:51
FunctionTestEchoExample_ValidToken
(t *testing.T)
examples/echo-example/main_integration_test.go:13
FunctionTestErrorCases
(t *testing.T)
examples/http-dpop-trusted-proxy/main_integration_test.go:305
FunctionTestErrorResponse_JSON
(t *testing.T)
error_handler_test.go:688
FunctionTestEvictLRUEdgeCases
TestEvictLRUEdgeCases tests edge cases in LRU eviction
jwks/multi_issuer_provider_test.go:806
FunctionTestExtractCustomClaims
(t *testing.T)
validator/validator_test.go:646
FunctionTestFetchWithCacheControlErrorCases
TestFetchWithCacheControlErrorCases tests error handling in fetchWithCacheControl
jwks/provider_test.go:1445
FunctionTestGRPCExample_ExpiredToken
(t *testing.T)
examples/grpc-example/server/main_integration_test.go:212
FunctionTestGRPCExample_HealthCheckNoAuth
(t *testing.T)
examples/grpc-example/server/main_integration_test.go:243
FunctionTestGRPCExample_HealthCheckWithAuth
(t *testing.T)
examples/grpc-example/server/main_integration_test.go:253
FunctionTestGRPCExample_InvalidToken
(t *testing.T)
examples/grpc-example/server/main_integration_test.go:133
FunctionTestGRPCExample_MalformedAuthHeader
(t *testing.T)
examples/grpc-example/server/main_integration_test.go:269
FunctionTestGRPCExample_MissingToken
(t *testing.T)
examples/grpc-example/server/main_integration_test.go:119
FunctionTestGRPCExample_ValidToken
(t *testing.T)
examples/grpc-example/server/main_integration_test.go:100
FunctionTestGRPCExample_WrongAudience
(t *testing.T)
examples/grpc-example/server/main_integration_test.go:181
FunctionTestGRPCExample_WrongIssuer
(t *testing.T)
examples/grpc-example/server/main_integration_test.go:150
FunctionTestGetClaims_NotFound
(t *testing.T)
integrations/grpc/interceptor_test.go:495
FunctionTestGetClaims_Success
(t *testing.T)
integrations/grpc/interceptor_test.go:480
FunctionTestGetDPoPContext
Test DPoP context helpers
dpop_test.go:61
FunctionTestGetLeftmost
(t *testing.T)
proxy_test.go:235
FunctionTestGetWellKnownEndpointsFromIssuerURL
TestGetWellKnownEndpointsFromIssuerURL tests various scenarios for GetWellKnownEndpointsFromIssuerURL.
internal/oidc/oidc_test.go:26
FunctionTestGetWellKnownEndpointsFromIssuerURL_IssuerValidation
TestGetWellKnownEndpointsFromIssuerURL_IssuerValidation tests the MCD double-validation requirement.
internal/oidc/oidc_test.go:174
FunctionTestGetWellKnownEndpointsFromIssuerURL_SecurityScenarios
TestGetWellKnownEndpointsFromIssuerURL_SecurityScenarios tests security-focused scenarios.
internal/oidc/oidc_test.go:262
FunctionTestGetWellKnownEndpoints_BodyReadFailure
Test response body read failure
internal/oidc/oidc_test.go:156
FunctionTestGetWellKnownEndpoints_InvalidRequest
Test invalid request creation
internal/oidc/oidc_test.go:143
FunctionTestGetWellKnownEndpoints_NetworkError
Simulate a network failure scenario
internal/oidc/oidc_test.go:116
FunctionTestGetWellKnownEndpoints_Timeout
Simulate a timeout scenario
internal/oidc/oidc_test.go:127
FunctionTestGinExample_InvalidToken
(t *testing.T)
examples/gin-example/main_integration_test.go:71
FunctionTestGinExample_MissingToken
(t *testing.T)
examples/gin-example/main_integration_test.go:54
FunctionTestGinExample_ValidToken
(t *testing.T)
examples/gin-example/main_integration_test.go:14
FunctionTestHTTPDPoPExample_BearerDPoPToken_NoProof
Bearer DPoP token without proof → 401 invalid_token
examples/http-dpop-example/main_integration_test.go:1101
FunctionTestHTTPDPoPExample_BearerInvalidToken_WithProof
Bearer invalid token with proof → 401 invalid_token (or 400 invalid_request)
examples/http-dpop-example/main_integration_test.go:1034
FunctionTestHTTPDPoPExample_BearerScheme_DPoPBoundToken_WithProof
============================================================================= Additional RFC 9449 Compliance Tests - ALLOWED Mode ====================
examples/http-dpop-example/main_integration_test.go:918
FunctionTestHTTPDPoPExample_DPoPInvalidToken_WithProof
DPoP invalid token with proof → 401 invalid_token
examples/http-dpop-example/main_integration_test.go:1195
FunctionTestHTTPDPoPExample_DPoPMismatchedJKT
(t *testing.T)
examples/http-dpop-example/main_integration_test.go:310
FunctionTestHTTPDPoPExample_DPoPProofExpired
(t *testing.T)
examples/http-dpop-example/main_integration_test.go:536
FunctionTestHTTPDPoPExample_DPoPProofFuture
(t *testing.T)
examples/http-dpop-example/main_integration_test.go:578
FunctionTestHTTPDPoPExample_DPoPScheme_BearerToken_WithProof
DPoP scheme with Bearer token and proof → 401 invalid_token
examples/http-dpop-example/main_integration_test.go:1154
← previousnext →401–500 of 744, ranked by callers