-
Notifications
You must be signed in to change notification settings - Fork 247
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
Anonymous Auth doesn't work with npx ampx pipeline-deploy #5434
Comments
Hi @verygoodstefan, thank you for submitting this issue. We will take a look at this issue and get back to you when we have any updates or questions. |
Hi @verygoodstefan. To clarify, are you saying |
@Equartey both: the ID is different in production than sandbox (which is expected), but also, every time the |
Hi @verygoodstefan, I followed the reproduction steps but was unable to reproduce this issue. I deployed resources via |
@khatruong2009 the repo is here, if you want to see the configuration I have set up. |
Hey @verygoodstefan, just noticed you reported the platform as Linux, have you seen this issue on other platforms? |
@Equartey I have not--my Amplify app is running on an AWS App Runner instance that uses a Linux server, so that's why I selected Linux. |
thanks for confirming. We were not able to reproduce this issue using Amplify Gen 2. Would you please provide a code snippet of your auth definition with any sensitive info removed. |
@NikaHsn here is the auth resource in code:
And here is what it generates in
|
thanks for providing these info.
would you please confirm if you are running a web app on Linux server (AWS App Runner instance) or if you are running a Linux app on a Linux server? |
It's a Linux app (Dart Frog, built in a Docker container) on a Linux server (AWS App Runner instance). |
thanks for confirming. we will look into this and provide update as we have them. |
Description
I have an Amplify project that uses
amplify_auth_cognito_dart
and fetches guest authentication data viafetchAuthSession
. When I deploy the AWS resources for this project usingnpx ampx sandbox
, I am able to consistently fetch the same identityPool ID on multiple calls tofetchAuthSession
. When I deploy the project usingnpx ampx pipeline-deploy
, however, calls tofetchAuthSession
return brand new identity pool IDs every time.Is there a reason that multiple calls to
fetchAuthSession
fetch a consistent identityPool ID in sandbox, but not in pipeline deploy?Repo is here. It's a private repo, so if you want to look into the code, let me know and I will invite you.
Categories
Steps to Reproduce
AmplifyAuthCognitoDart
.npx ampx pipeline-deploy
fetchAuthSession
multiple times, and inspect the identityId result.Screenshots
No response
Platforms
Flutter Version
3.22.1
Amplify Flutter Version
0.11.3 (Amplify Auth Cognito Dart)
Deployment Method
Custom Pipeline
Schema
No response
The text was updated successfully, but these errors were encountered: