-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(tenant management service): (create tenant doc example failing with 403 forbidden) #128
Comments
It returned 201, created the tenant in the dynamo table, but did not trigger the stepfunction that provisions the tenant infra. After a bit of debugging, I realized that the |
I got it to work by POSTing to |
@jmezzera , sorry the docs need a little bit of an update. The Just as an FYI, here's a sample request out to the Lines 167 to 197 in 4b3afd8
You can have a look at our testing framework to see how to interact with it and what the response includes: sbt-aws/scripts/test-sbt-aws.sh Lines 72 to 76 in 4b3afd8
Hope this helps! Sorry about the confusion. I'll leave this open until we get a PR to fix the documentation. |
Describe the issue
Hello there,
I'm trying to run the example stack to test the library, however, I'm facing some authentication issues.
The following request is returning a 403 status:
sbt-aws/docs/public/README.md
Lines 522 to 526 in f57391e
While inspecting the API Gateway the stack deploys, and looking at the underlying code, I noticed that the authorizer for the POST routes is an IAM authorizer and not a CognitoAuthorizer, which led me to believe that the JWT token being passed to that request in the docs (retrieved from cognito) is not the one to be used.
Context
Am I doing anything wrong on my side?
Thanks in advance
Links
sbt-aws/docs/public/README.md
Lines 522 to 526 in f57391e
The text was updated successfully, but these errors were encountered: