Cognito Authorizer passthrough to Authentication Middleware #1961
Labels
feature-request
A feature should be added or improved.
m
Effort estimation: medium
module/lambda-client-lib
p2
This is a standard priority issue
Describe the feature
It would be great to have some functionality to provide the JWT token that is evaluated on API Gateway by the Cognito UserPool authorizer, to be 'passed' through to the ASP.NET Authentication middleware.
Use Case
Currently, I can't test locally. I need to deploy to AWS and debug the context object by using console output and grepping logs for the context object and the details contained within, that is provided to the Lambda function by API Gateway.
I think this would be helpful for portability and testing. This would allow the application to continue using the [Authorize] attributes and minimise conditional checks whether its being tested locally or in the cloud.
Proposed Solution
No response
Other Information
No response
Acknowledgements
AWS .NET SDK and/or Package version used
Latest published.
Targeted .NET Platform
.NET 8
Operating System and version
Ubuntu 24.04
The text was updated successfully, but these errors were encountered: