mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
ExecuteApiSigV4Authorizer (API Gateway) and IamAuthValidator (AppSync) each carried an identical 15-line block splitting Credential=/ SignedHeaders=/Signature= out of a raw AWS4-HMAC-SHA256 Authorization header value, found via CPD (#3714). Neither #3657 (closing #3650) nor #3706 (closing #3700), which already deduplicated related SigV4 logic between these same two files, touched this specific block. Extracted it into SigV4AuthorizationHeader in core.common.auth, alongside CredentialScope and SigV4RequestValidator from #3657, and pointed both call sites at it. No behavior change: the parsing is identical, only its location changed. Both files' existing test suites pass unchanged.