MCPcopy Create free account

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

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

FunctionTestSetAndGetAuthScheme
TestSetAndGetAuthScheme tests the auth scheme storage and retrieval
core/context_test.go:97
FunctionTestSetAndGetClaims
TestSetAndGetClaims tests the claims storage and retrieval from context
core/context_test.go:12
FunctionTestSetAndGetDPoPContext
TestSetAndGetDPoPContext tests the DPoP context storage and retrieval
core/context_test.go:58
FunctionTestSetAndGetDPoPMode
TestSetAndGetDPoPMode tests the DPoP mode storage and retrieval
core/context_test.go:145
FunctionTestSetIssuerInContext
(t *testing.T)
validator/validator_test.go:857
FunctionTestStandardProxyConfiguration
(t *testing.T)
examples/http-dpop-trusted-proxy/main_integration_test.go:54
FunctionTestStreamServerInterceptor_ExcludedMethods
(t *testing.T)
integrations/grpc/interceptor_test.go:459
FunctionTestStreamServerInterceptor_ExcludedMethodsWithLogger
(t *testing.T)
integrations/grpc/interceptor_test.go:757
FunctionTestStreamServerInterceptor_MissingToken
(t *testing.T)
integrations/grpc/interceptor_test.go:418
FunctionTestStreamServerInterceptor_OptionalCredentials
(t *testing.T)
integrations/grpc/interceptor_test.go:438
FunctionTestStreamServerInterceptor_Success
(t *testing.T)
integrations/grpc/interceptor_test.go:392
FunctionTestStringToJWXAlgorithm
(t *testing.T)
validator/validator_test.go:543
FunctionTestTrustedProxyConfigHasAnyTrustedHeaders
(t *testing.T)
proxy_test.go:341
FunctionTestUnaryServerInterceptor_ExcludedMethods
(t *testing.T)
integrations/grpc/interceptor_test.go:239
FunctionTestUnaryServerInterceptor_ExclusionHandler
(t *testing.T)
integrations/grpc/interceptor_test.go:260
FunctionTestUnaryServerInterceptor_ExclusionHandler_CombinedWithExcludedMethods
(t *testing.T)
integrations/grpc/interceptor_test.go:286
FunctionTestUnaryServerInterceptor_InvalidFormat
(t *testing.T)
integrations/grpc/interceptor_test.go:147
FunctionTestUnaryServerInterceptor_InvalidToken
(t *testing.T)
integrations/grpc/interceptor_test.go:124
FunctionTestUnaryServerInterceptor_JWKSErrorWithProperCode
(t *testing.T)
integrations/grpc/interceptor_test.go:357
FunctionTestUnaryServerInterceptor_MissingToken
(t *testing.T)
integrations/grpc/interceptor_test.go:103
FunctionTestUnaryServerInterceptor_MultipleAuthHeaders
(t *testing.T)
integrations/grpc/interceptor_test.go:169
FunctionTestUnaryServerInterceptor_OptionalCredentials_NoToken
(t *testing.T)
integrations/grpc/interceptor_test.go:194
FunctionTestUnaryServerInterceptor_OptionalCredentials_WithToken
(t *testing.T)
integrations/grpc/interceptor_test.go:215
FunctionTestUnaryServerInterceptor_Success
(t *testing.T)
integrations/grpc/interceptor_test.go:82
FunctionTestUnaryServerInterceptor_ValidatorError
(t *testing.T)
integrations/grpc/interceptor_test.go:321
FunctionTestValidateAudience
(t *testing.T)
validator/validator_test.go:614
FunctionTestValidateIssuer
(t *testing.T)
validator/validator_test.go:589
FunctionTestValidateIssuerWithResolver
(t *testing.T)
validator/validator_test.go:979
FunctionTestValidateToken_DPoPHeaderExtractorError
TestValidateToken_DPoPHeaderExtractorError tests error path in validateToken
middleware_test.go:361
FunctionTestValidateToken_DPoPSchemeWithoutProof
TestValidateToken_DPoPSchemeWithoutProof tests the security check for DPoP scheme without proof
middleware_test.go:917
FunctionTestValidateToken_EdgeCases
(t *testing.T)
validator/validator_test.go:1277
FunctionTestValidateToken_WithIssuersResolver
(t *testing.T)
validator/validator_test.go:1041
FunctionTestValidateToken_WithRegisteredClaimsValidator
(t *testing.T)
validator/validator_test.go:1444
FunctionTestValidatedClaims_DPoPMethods
(t *testing.T)
validator/claims_test.go:9
FunctionTestValidationError
(t *testing.T)
core/core_test.go:348
FunctionTestValidator_IssuerValidationInValidateToken
(t *testing.T)
validator/validator_test.go:741
FunctionTestValidator_ValidateToken
(t *testing.T)
validator/validator_test.go:27
FunctionTestWithAlgorithms
(t *testing.T)
validator/validator_test.go:1163
FunctionTestWithDPoPHeaderExtractor
(t *testing.T)
option_test.go:831
FunctionTestWithDPoPHeaderExtractor_NilExtractor
TestWithDPoPHeaderExtractor_NilExtractor tests nil extractor validation
option_test.go:809
FunctionTestWithDPoPIATLeeway
(t *testing.T)
option_test.go:924
FunctionTestWithDPoPIATLeeway
(t *testing.T)
core/dpop_test.go:695
FunctionTestWithDPoPIATLeeway_Negative
(t *testing.T)
core/dpop_test.go:707
FunctionTestWithDPoPMode
(t *testing.T)
option_test.go:846
FunctionTestWithDPoPMode
Test DPoP configuration options
core/dpop_test.go:659
FunctionTestWithDPoPProofOffset
(t *testing.T)
option_test.go:879
FunctionTestWithDPoPProofOffset
(t *testing.T)
core/dpop_test.go:671
FunctionTestWithDPoPProofOffset_Negative
(t *testing.T)
core/dpop_test.go:683
FunctionTestWithIssuerKeyConfig
TestWithIssuerKeyConfig tests the symmetric issuer key configuration option.
jwks/multi_issuer_provider_test.go:592
FunctionTestWithIssuerKeyConfigs
(t *testing.T)
jwks/multi_issuer_provider_test.go:684
FunctionTestWithIssuer_MutualExclusivity
(t *testing.T)
validator/validator_test.go:939
FunctionTestWithIssuersResolver
(t *testing.T)
validator/validator_test.go:870
FunctionTestWithIssuers_MutualExclusivity
(t *testing.T)
validator/validator_test.go:959
FunctionTestWithLogger
(t *testing.T)
integrations/grpc/interceptor_test.go:624
FunctionTestWithLogger_ExcludedMethod
(t *testing.T)
integrations/grpc/interceptor_test.go:649
FunctionTestWithLogger_OptionalCredentialsNoToken
(t *testing.T)
integrations/grpc/interceptor_test.go:730
FunctionTestWithLogger_TokenExtractionFailure
(t *testing.T)
integrations/grpc/interceptor_test.go:676
FunctionTestWithLogger_ValidationFailure
(t *testing.T)
integrations/grpc/interceptor_test.go:703
FunctionTestWithRegisteredClaimsValidator
(t *testing.T)
validator/validator_test.go:1406
FunctionTestWithValidator_NilValidator
TestWithValidator_NilValidator tests nil validator validation
option_test.go:822
FunctionTest_AuthHeaderTokenExtractor
(t *testing.T)
extractor_test.go:14
FunctionTest_CheckJWT
(t *testing.T)
middleware_test.go:21
FunctionTest_CookieTokenExtractor
(t *testing.T)
extractor_test.go:177
FunctionTest_GetClaims
(t *testing.T)
option_test.go:532
FunctionTest_HasClaims
(t *testing.T)
option_test.go:661
FunctionTest_JWKSProvider
(t *testing.T)
jwks/provider_test.go:25
FunctionTest_MultiTokenExtractor
(t *testing.T)
extractor_test.go:243
FunctionTest_MustGetClaims
(t *testing.T)
option_test.go:614
FunctionTest_New_Defaults
(t *testing.T)
option_test.go:153
FunctionTest_New_OptionsValidation
(t *testing.T)
option_test.go:38
FunctionTest_ParameterTokenExtractor
(t *testing.T)
extractor_test.go:133
FunctionTest_SentinelErrors
(t *testing.T)
option_test.go:710
FunctionTest_ValidateDPoPProof_DifferentAlgorithms
Test_ValidateDPoPProof_DifferentAlgorithms tests various signature algorithms
validator/dpop_test.go:343
FunctionTest_ValidateDPoPProof_EmptyProof
Test_ValidateDPoPProof_EmptyProof tests validation with empty proof string
validator/dpop_test.go:111
FunctionTest_ValidateDPoPProof_InvalidHeaderJSON
Test_ValidateDPoPProof_InvalidHeaderJSON tests validation with malformed header JSON
validator/dpop_test.go:570
FunctionTest_ValidateDPoPProof_InvalidJWK
Test_ValidateDPoPProof_InvalidJWK tests validation with malformed JWK
validator/dpop_test.go:589
FunctionTest_ValidateDPoPProof_InvalidSignature
Test_ValidateDPoPProof_InvalidSignature tests validation with tampered proof
validator/dpop_test.go:302
FunctionTest_ValidateDPoPProof_InvalidTypHeader
Test_ValidateDPoPProof_InvalidTypHeader tests validation with wrong typ header
validator/dpop_test.go:156
FunctionTest_ValidateDPoPProof_MalformedJWT
Test_ValidateDPoPProof_MalformedJWT tests validation with malformed JWT
validator/dpop_test.go:123
FunctionTest_ValidateDPoPProof_MissingJWK
Test_ValidateDPoPProof_MissingJWK tests validation without JWK in header
validator/dpop_test.go:191
FunctionTest_ValidateDPoPProof_MissingRequiredClaims
Test_ValidateDPoPProof_MissingRequiredClaims tests validation with missing claims
validator/dpop_test.go:225
FunctionTest_ValidateDPoPProof_Success
Test_ValidateDPoPProof_Success tests successful DPoP proof validation
validator/dpop_test.go:25
FunctionTest_ValidateDPoPProof_UnsupportedAlgorithm
Test_ValidateDPoPProof_UnsupportedAlgorithm tests validation with unsupported algorithm
validator/dpop_test.go:618
FunctionTest_ValidateDPoPProof_WithOptionalClaims
Test_ValidateDPoPProof_WithOptionalClaims tests DPoP proof with nonce and ath
validator/dpop_test.go:72
FunctionTest_WithCredentialsOptional
(t *testing.T)
option_test.go:169
FunctionTest_WithErrorHandler
(t *testing.T)
option_test.go:227
FunctionTest_WithExclusionUrls
(t *testing.T)
option_test.go:257
FunctionTest_WithLogger
(t *testing.T)
option_test.go:293
FunctionTest_WithTokenExtractor
(t *testing.T)
option_test.go:242
FunctionTest_WithValidateOnOptions
(t *testing.T)
option_test.go:198
FunctionTest_calculateJKT
Test_calculateJKT tests JKT calculation for different key types
validator/dpop_test.go:416
FunctionTest_calculateJKT_EdgeCases
Test_calculateJKT_EdgeCases tests edge cases for calculateJKT
validator/dpop_test.go:722
FunctionTest_calculateJKT_MatchesSpec
Test_calculateJKT_MatchesSpec tests that JKT calculation matches RFC 7638
validator/dpop_test.go:473
FunctionTest_extractConfirmationClaim
Test_extractConfirmationClaim tests cnf claim extraction from access tokens
validator/dpop_test.go:495
FunctionTest_extractConfirmationClaim_InvalidBase64Payload
Test_extractConfirmationClaim_InvalidBase64Payload tests extraction with invalid base64
validator/dpop_test.go:704
FunctionTest_extractConfirmationClaim_InvalidPayloadJSON
Test_extractConfirmationClaim_InvalidPayloadJSON tests extraction with malformed payload
validator/dpop_test.go:668
FunctionTest_extractDPoPClaims_InvalidBase64Payload
Test_extractDPoPClaims_InvalidBase64Payload tests extraction with invalid base64 in payload
validator/dpop_test.go:686
FunctionTest_extractDPoPClaims_InvalidPayloadJSON
Test_extractDPoPClaims_InvalidPayloadJSON tests extraction with malformed payload
validator/dpop_test.go:650
FunctionTest_invalidError
(t *testing.T)
option_test.go:759
FunctionTest_validatorAdapter
(t *testing.T)
option_test.go:732
← previousnext →601–700 of 744, ranked by callers