mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
* fix: populate full APIGatewayRequestAuthorizerEvent for REQUEST authorizers Closes #807. Previously, REQUEST-type Lambda authorizers received only 'type' and 'methodArn'. This commit populates the complete event shape matching real AWS behavior: - headers, multiValueHeaders - queryStringParameters, multiValueQueryStringParameters - pathParameters (empty object when none, not null) - stageVariables (from Stage config, null when unconfigured) - requestContext with accountId, apiId, resourceId, resourcePath, path, httpMethod, stage, requestId, requestTimeEpoch - requestContext.identity with sourceIp, userAgent, apiKey, clientCert Also enriches the AWS_PROXY integration event (buildProxyEvent) with: - Full identity object (all null fields matching AWS wire format) - domainName, domainPrefix, protocol, requestTime, extendedRequestId - stageVariables from Stage configuration - API key resolution from usage plan keys Refactors shared logic into reusable helpers: - putSingleValueHeaders, putMultiValueHeaders - putQueryStringParameters, putMultiValueQueryStringParameters Resolves API key once per request (not duplicated across authorizer and proxy event builders). * fix: remove AWS SDK deps from main pom, rewrite test with RestAssured Addresses review feedback: AWS SDK dependencies should not be in the main Floci project. Rewrites ApiGatewayRequestAuthorizerIntegrationTest to use only RestAssured for management-plane and execute-api calls, matching the established pattern of all other @QuarkusTest tests. --------- Co-authored-by: Dixit R Jain <dixitrjain@Dixits-MacBook-Pro.local> Co-authored-by: Dixit R Jain <dixitrjain@Mac.lan>