-
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
Auth sign-in redirect Url get carried through different environments #11818
Comments
Hey @yunchanpaik 👋 thanks for raising this and apologies for the delay! While we do not currently support env-specific redirect URI's I think this is a very reasonable request! I was able to workaround this issue by lifting the {
"dev": {
"awscloudformation": {
},
"categories": {
"auth": {
"authenvredirects12ab993d": {
"oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"http://localhost:3333/\"],\"LogoutURLs\":[\"http://localhost:3333/\"]}"
}
}
}
},
"next": {
"awscloudformation": {
},
"categories": {
"auth": {
"authenvredirects12ab993d": {
"oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"http://localhost:4444/\"],\"LogoutURLs\":[\"http://localhost:4444/\"]}"
}
}
}
}
} Marking as a feature request to support env-specific redirect URIs |
The workaround did it! Thank you so much for the help, Jose. Looking forward to a proper implementation for this feature. Currently, the Amplify Studio shows blank redirect_url even though it works, probably because it's not reading the overrides from |
Hey @yunchanpaik glad to hear that worked for you! For the Studio issue, yes I don't believe Studio is set to look in team-provider-info for this detail, but we will keep that in mind as we work to improve this experience! |
@josefaidt can you share more info on what can and can’t be done with
|
@josefaidt following up on my prior question—I have an auth user pool |
@josefaidt thank you so much. |
How did you install the Amplify CLI?
yarn
If applicable, what version of Node.js are you using?
18.11.0
Amplify CLI Version
10.6.2
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Describe the bug
I currently have two working environments (dev and staging) for my project and I am using Google Oauth provider for both of them.
The problem is that the sign-in redirect URL for one environment will get carried over when switching between the environments.
Expected behavior
I need the following sign-in redirect URLs for each environment:
dev: https://dev.mydomain.com/, http://localhost:3000/
staging: https://staging.mydomain.com/
Reproduction steps
amplify add env
amplify checkout env staging
amplify update auth
-Add/Edit signin and signout redirect URIs
amplify push
dev
andstaging
are correctly configured on cloudamplify checkout env dev
amplify status
amplify push
dev
andstaging
are incorrectly configured to behttps://staging.mydomain.com/
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: