-
Notifications
You must be signed in to change notification settings - Fork 45
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
oAuth
section is missing from the legecy (gen 1) config
#1551
Comments
Hey @Jordan-Nelson 👋 thanks for raising this! Marking as a bug |
oAuth
section is missing from the legecy (gen 1) config when added addOutputs()
oAuth
section is missing from the legecy (gen 1) config
This doesn't appear to be fully resolved. The oAuth section is now present, but it is missing the user pool client id. Also the socialProviders section (oauth.identity_providers in gen2) is missing. |
Just to clarify the first step
But the example uses |
Apologies for the confusion. By "non-gen-2" backend, I meant an app that is using an existing Cognito resource. However, this issue can be reproduced with a gen 2 app as well. See the steps below. Reproduction steps using Gen 2:
import { defineAuth, secret } from "@aws-amplify/backend";
export const auth = defineAuth({
loginWith: {
email: true,
externalProviders: {
google: {
clientId: secret("google_client_id"),
clientSecret: secret("google_client_secret"),
scopes: ["email", "profile"],
},
callbackUrls: ["myapp://"],
logoutUrls: ["myapp://"],
},
},
});
|
Thanks for the detailed reproduction @Jordan-Nelson ! I was able to reproduce the issue mostly. Only one question:
|
Closing as the last issue is resolved in PR #1655 |
Environment information
Description
Note: The repro steps use .addOutputs to reproduce this, but it appears to be reproducible with an app that uses
defineAuth()
to add the oauth config. See: aws-amplify/amplify-flutter#4922Steps to reproduce:
npx ampx generate outputs --format dart --out-dir lib --outputs-version 0
)npx ampx generate outputs --format dart --out-dir lib
)Expected Behavior: oAuth is present in both gen 1 and gen 2 config formats.
Actual Behavior: oAuth is missing when using the gen 1 config format.
gen 2 outputs (oAuth present)
gen 1 config (oAuth missing)
The text was updated successfully, but these errors were encountered: