Deployment method:CloudFormation with AWS::Serverless-2016-10-31 transform
Scenario
I'm trying to access the SigV4 authorizer information for a lambda which is using lambda function URLs.
Although the fields are available in the context object in StreamLambdaHandler.handleRequest, they get discarded and aren't available in the AwsHttpApiV2ProxyHttpServletRequest object.
Expected behavior
The requestContext.authorizer.iam.* fields are accessible / not discarded.
Actual behavior
requestContext.authorizer is null because anything besides jwt or lambda is ignored:
Serverless Java Container version:
2.0.0
Implementations:
Spring Boot 3
Framework version:
SpringBoot 3.2.0
Frontend service:
Lambda function URL
Deployment method:
CloudFormation with AWS::Serverless-2016-10-31 transform
Scenario
I'm trying to access the SigV4 authorizer information for a lambda which is using lambda function URLs.
Although the fields are available in the
context
object inStreamLambdaHandler.handleRequest
, they get discarded and aren't available in theAwsHttpApiV2ProxyHttpServletRequest
object.Expected behavior
The
requestContext.authorizer.iam.*
fields are accessible / not discarded.Actual behavior
requestContext.authorizer
is null because anything besidesjwt
orlambda
is ignored:https://github.com/aws/serverless-java-container/blob/main/aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/model/HttpApiV2AuthorizerMap.java#L79-L80
Redacted sample event