mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -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>
44 lines
1.4 KiB
JSON
44 lines
1.4 KiB
JSON
{
|
|
"name": "floci-compatibility-tests-typescript",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-acm": "^3.500.0",
|
|
"@aws-sdk/client-api-gateway": "^3.500.0",
|
|
"@aws-sdk/client-apigatewaymanagementapi": "^3.500.0",
|
|
"@aws-sdk/client-apigatewayv2": "^3.500.0",
|
|
"@aws-sdk/client-cloudformation": "^3.500.0",
|
|
"@aws-sdk/client-cloudwatch": "^3.500.0",
|
|
"@aws-sdk/client-cognito-identity-provider": "^3.500.0",
|
|
"@aws-sdk/client-dynamodb": "^3.500.0",
|
|
"@aws-sdk/client-ecr": "^3.500.0",
|
|
"@aws-sdk/client-eventbridge": "^3.500.0",
|
|
"@aws-sdk/client-iam": "^3.500.0",
|
|
"@aws-sdk/client-kinesis": "^3.500.0",
|
|
"@aws-sdk/client-kms": "^3.500.0",
|
|
"@aws-sdk/client-lambda": "^3.500.0",
|
|
"@aws-sdk/client-pipes": "^3.500.0",
|
|
"@aws-sdk/client-s3": "^3.500.0",
|
|
"@aws-sdk/client-secrets-manager": "^3.500.0",
|
|
"@aws-sdk/client-sns": "^3.500.0",
|
|
"@aws-sdk/client-sqs": "^3.500.0",
|
|
"@aws-sdk/client-ssm": "^3.500.0",
|
|
"@aws-sdk/client-neptune": "^3.500.0",
|
|
"@aws-sdk/client-sts": "^3.500.0",
|
|
"selfsigned": "^5.5.0",
|
|
"ws": "^8.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.0.0",
|
|
"@types/ws": "^8.0.0",
|
|
"amazon-cognito-identity-js": "^6.3.16",
|
|
"esbuild": "^0.21.0",
|
|
"typescript": "^5.4.0",
|
|
"vitest": "^2.0.0"
|
|
}
|
|
}
|