-
Notifications
You must be signed in to change notification settings - Fork 248
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
Amplify Gen2 Flutter REST API #5252
Comments
Hi @mateuszboryn thank you for opening this request. I'm going to mark this as a feature request for REST API support in Gen2. In the meantime can you you try updating your amplify config Json like in this example
Let us know if this resolves your issue and please note that this is not an officially supported work around and could break in future versions, but we will let you know when we have an official implementation. |
Thank you @tyllark for prompt response and the example provided.
The example you linked has name suggesting it is multiAuthRest. I searched the repo for multiAuthRest and the only resources created that I found are using IAM, and not COGNITO USER POOL. With that example I got API Gateway to have routes with AWS_IAM authorizer. I'm expecting to have Cognito User Pool authorizer instead. Below is the code that is much closer to what I expect with some comments on which settings fail.
|
Description
I can't see an example of Amplify Gen2 Flutter REST API.
There is one for React (https://docs.amplify.aws/react/build-a-backend/add-aws-services/rest-api/set-up-rest-api/), however whatever I try for Flutter, it doesn't work.
Could you please provide some working example of:
Categories
Steps to Reproduce
There's documentation for React (https://docs.amplify.aws/react/build-a-backend/add-aws-services/rest-api/set-up-rest-api/), but I can't find one for flutter.
I tried to adapt existing example from React to Flutter, however I can't get requests authorized.
The above gives 401
Screenshots
No response
Platforms
Flutter Version
3.22.3
Amplify Flutter Version
2.3.0
Deployment Method
AWS CDK
Schema
No response
The text was updated successfully, but these errors were encountered: