-
Notifications
You must be signed in to change notification settings - Fork 824
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
Error when different Callback URL's for Native and Web Cognito clients? #13628
Comments
Hi @tiyberius, this doesn't seem specific to Flutter, I'm going to transfer this to the CLI team for better support. |
Great thank you @Equartey! Look forward to the response from the CLI team |
Hey @tiyberius, thank you for reaching out. The import auth currently expects the URL's to match, the flow uses AWS SDK to import the Cognito resource. But do agree the flow can be improved to support different callback and Logout URL's. As a workaround you should able to use the Amplify configure method Marking this a feature-request for improvements. amplify-cli/packages/amplify-category-auth/src/provider-utils/awscloudformation/import/index.ts Line 515 in 8ad57bf
|
Thanks @ykethan for the quick response and a solution. I’ll give this a shot! |
|
Description
I am very confused and the documentation does not help clear things up. I am importing an existing Cognito User Pool, as described here https://docs.amplify.aws/flutter/build-a-backend/auth/import-existing-resources/ and I'm getting the error:
The documentation states
Why must these values be the same across clients? Isn't that the whole point of having different clients? So that each client can have their own values like callback url and logout url? I can't imagine a situation in which these values should be the same.
Please let me know if I'm doing anything wrong or there is something missing in my understanding.
Thanks!
Categories
Steps to Reproduce
https://dev.acme-builders.app/
acme-buildersapp-dev://
amplify import auth
Screenshots
No response
Platforms
Flutter Version
3.16.5
Amplify Flutter Version
1.6.1
Deployment Method
Amplify CLI
Schema
No response
The text was updated successfully, but these errors were encountered: