I am putting together a Python 3.8-based Serverless sample application, and wanted to experiment with a JWT httpApi sample client. Running into errors with what gets transformed. Here is the snippet of serverless.yml:
provider:
name: aws
runtime: python3.8
stage: dev
region: us-east-1
environment:
CONFIG_TABLE: ${self:custom.tableNames.sharedTasks}
CONFIG_DYNAMODB_ENDPOINT: ${self:custom.endpoints.dynamodb-url}
httpApi:
authorizers:
sharedTasksJwtAuthorizer:
identitySource: $request.header.Authorization
jwtConfiguration:
issuerUrl:
Fn::Join:
- ''
-
- "https://cognito-idp."
- ${self:custom.region}
- ".amazonaws.com/"
- Ref: CognitoIdentityPool
audience:
- Ref: CognitoUserClientPoolId
I’ve tried issuer, issuerUrl. Neither transform - the sls print shows the values in the transformed serverless config, but in .serverless the update cloudformation shows the audience as null, and does not send off issuer or issuerUrl.
Am I doing something wrong, or is the httpApi support either different than the post announcing it or has bugs? It would be great to see a Jwt sample with a Cognito User and Identity Pool with the httpApi like you have with auth0 to base things on.
Thanks for any community help here.
Best,
Ken