Replies: 2 comments 2 replies
-
The Wiki provides a basic way to configure AWS Cognito for testing the library. You can use it as a reference, but keep in mind that it's the simplest configuration and shouldn't be used in production. Could you share your configuration for the Additionally, when passing the bearer token, are you following the convention and including it in the headers as |
Beta Was this translation helpful? Give feedback.
-
Thank you for the repo, there is nothing wrong, it's working fine when passing the access token. ![]() The issue is located inside your AWS Cognito configuration. |
Beta Was this translation helpful? Give feedback.
-
It would be great if there was some instructions on how to set up AWS Cognito to work correctly with this library, as I currently cannot get the authentication to work with my Nest app. I am making a few assumptions and would appreciate any advice on what I am doing wrong. I am using Nest to create a Rest API.
I have created a new user pool in AWS Cognito, and I have created a new app within this user pool. I have then copied the user pool id and client pool ids to the env file which are then being referenced in the auth instantiation (as per the instructions).
I have a controller which I can confirm returns a response. I then wrap the controller with the
@Authentication
decorator and have confirmed that the response is now protected.I am using Postman to generate an access token. This relies on my app having a hosted ui with the relevant Postman callback URLs registered. I then pass the access token in the request header as a bearer token. However, I receive the following response:
I can put together a sample app if it's easier, but I thought there might be something obvious I am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions