aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.81k stars 819 forks source link

aws-exports.js not adding new identify providers to aws_cognito_social_providers section #9313

Closed jsgphd closed 2 years ago

jsgphd commented 2 years ago

Before opening, please confirm:

JavaScript Framework

React

Amplify APIs

Authentication

Amplify Categories

auth

Environment information

``` # Put output below this line System: OS: Linux 5.13 Ubuntu 21.10 21.10 (Impish Indri) CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz Memory: 607.45 MB / 15.40 GB Container: Yes Shell: 5.1.8 - /bin/bash Binaries: Node: 16.8.0 - ~/.nvm/versions/node/v16.8.0/bin/node Yarn: 1.22.15 - ~/.yarn/bin/yarn npm: 8.1.1 - ~/.nvm/versions/node/v16.8.0/bin/npm Browsers: Chromium: 96.0.4664.45 Firefox: 95.0 npmPackages: @aws-amplify/ui-react: 2.1.4 => 2.1.4 @aws-amplify/ui-react-internal: undefined () @aws-amplify/ui-react-legacy: undefined () @material-ui/core: ^4.12.3 => 4.12.3 @material-ui/lab: ^4.0.0-alpha.60 => 4.0.0-alpha.60 @maticnetwork/maticjs: ^2.0.40 => 2.0.50 @maticnetwork/walletconnect-provider: 0.0.1-beta.1 => 0.0.1-beta.1 @openzeppelin/contracts: ^4.3.2 => 4.3.3 @reduxjs/toolkit: ^1.6.1 => 1.6.1 @reduxjs/toolkit-query: 1.0.0 @reduxjs/toolkit-query-react: 1.0.0 @solana/web3.js: 1.7.0 => 1.7.0 @testing-library/jest-dom: 5.11.4 => 5.11.4 @testing-library/react: 11.0.2 => 11.0.2 @toruslabs/openlogin-ed25519: ^1.0.2 => 1.2.0 @toruslabs/torus-direct-web-sdk: ^5.0.3 => 5.0.3 @toruslabs/torus-embed: ^1.13.2 => 1.13.2 @truffle/hdwallet-provider: ^1.4.2 => 1.7.0 @types/fontfaceobserver: ^2.1.0 => 2.1.0 @types/jest: ^27.0.1 => 27.0.1 (26.0.23) @types/node: 14.17.0 => 14.17.0 (14.6.4, 12.20.13, 15.3.0, 12.20.37) @types/react: 17.0.19 => 17.0.19 (17.0.0, 16.14.14) @types/react-dom: 16.9.14 => 16.9.14 @types/react-redux: ^7.1.18 => 7.1.18 @types/react-router-dom: ^5.1.8 => 5.1.8 @types/react-test-renderer: 17.0.1 => 17.0.1 @types/rimraf: 3.0.2 => 3.0.2 @types/shelljs: 0.8.9 => 0.8.9 @types/styled-components: ^5.1.14 => 5.1.14 @types/testing-library__jest-dom: 5.9.2 => 5.9.2 (5.9.5) @types/webpack: 4.41.22 => 4.41.22 (4.41.28) @types/webpack-env: 1.15.2 => 1.15.2 aws-amplify: 4.3.10 => 4.3.10 benchmark-uuid: undefined () bs58: ^4.0.1 => 4.0.1 chalk: ^4.1.2 => 4.1.2 (2.4.2, 3.0.0, 1.1.3, 2.4.1) chart.js: ^3.5.1 => 3.5.1 chart.js-auto: undefined () chart.js-helpers: undefined () cross-env: 7.0.2 => 7.0.2 crypto: ^1.0.1 => 1.0.1 dotenv: ^9.0.0 => 9.0.2 (8.2.0) eslint-config-prettier: 6.11.0 => 6.11.0 eslint-plugin-prettier: 3.1.4 => 3.1.4 eslint-plugin-react-hooks: ^4.2.0 => 4.2.0 ethereumjs-tx: 2.1.2 => 2.1.2 (1.3.7) ethers: 5.5.0 => 5.5.0 (4.0.49) final-form: ^4.20.2 => 4.20.2 fontfaceobserver: 2.1.0 => 2.1.0 husky: 4.2.5 => 4.2.5 i18next: 19.7.0 => 19.7.0 (20.2.4) i18next-browser-languagedetector: 6.0.1 => 6.0.1 i18next-scanner: 2.11.0 => 2.11.0 inquirer: 7.3.3 => 7.3.3 (1.2.3) inquirer-directory: 2.2.0 => 2.2.0 jest-styled-components: 7.0.3 => 7.0.3 lint-staged: ^11.1.2 => 11.1.2 lodash: ^4.17.21 => 4.17.21 mui-rff: ^3.0.13 => 3.0.13 node-plop: 0.26.2 => 0.26.2 plop: 2.7.4 => 2.7.4 plop-example: undefined () prettier: ^2.3.2 => 2.3.2 react: 16.13.1 => 16.13.1 (17.0.2) react-app-polyfill: 1.0.6 => 1.0.6 (2.0.0) react-chartjs-2: ^3.0.4 => 3.0.4 react-cookie: ^4.1.1 => 4.1.1 react-copy-to-clipboard: ^5.0.4 => 5.0.4 react-dom: 16.13.1 => 16.13.1 react-final-form: 6.5.3 => 6.5.3 react-helmet-async: ^1.1.2 => 1.1.2 react-i18next: 11.7.2 => 11.7.2 react-icons: ^4.3.1 => 4.3.1 react-loading-overlay: 1.0.1 => 1.0.1 react-redux: 7.2.1 => 7.2.1 react-router-dom: 5.2.0 => 5.2.0 react-scripts: 4.0.3 => 4.0.3 react-swipe-button: ^1.0.1 => 1.0.1 react-test-renderer: 16.13.1 => 16.13.1 react-toastify: 8.0.2 => 8.0.2 reactn: ^2.2.7 => 2.2.7 redux-injectors: 1.3.0 => 1.3.0 redux-logger: 3.0.6 => 3.0.6 redux-saga: 1.1.3 => 1.1.3 redux-saga/effects: undefined () replace-in-file: 6.1.0 => 6.1.0 rimraf: 3.0.2 => 3.0.2 (2.7.1, 2.6.3, 2.2.8) sanitize.css: 12.0.1 => 12.0.1 (10.0.0) serve: ^13.0.2 => 13.0.2 shelljs: 0.8.4 => 0.8.4 stellar-sdk: ^8.2.5 => 8.2.5 styled-components: ^5.3.1 => 5.3.1 styled-components/macro: undefined () styled-components/native: undefined () styled-components/primitives: undefined () stylelint: 13.7.0 => 13.7.0 stylelint-config-recommended: 3.0.0 => 3.0.0 stylelint-config-styled-components: 0.1.1 => 0.1.1 stylelint-processor-styled-components: 1.10.0 => 1.10.0 ts-node: ^10.2.1 => 10.2.1 typescript: 4.4.4 => 4.4.4 use-dencrypt-effect: 1.0.2 => 1.0.2 uuid: 8.3.2 => 8.3.2 (3.4.0, 3.3.2, 2.0.1) web-vitals: 0.2.4 => 0.2.4 web3: 1.6.0 => 1.6.0 npmGlobalPackages: @aws-amplify/cli: 7.4.5 @graphprotocol/graph-cli: 0.21.1 ganache-cli: 6.12.2 npm: 8.1.1 truffle: 5.4.9 ```

Describe the bug

I added three social providers as you can see pics ss6 and ss2 and when I use the hosted login it shows all three as you can see in ss3. However it is not adding it properly to aws-exports.js properly as you can see in ss1. It only adds:

"aws_cognito_social_providers": [
    "GOOGLE"
],

If I manually edit the aws-exports.js and make it: "aws_cognito_social_providers": [ "GOOGLE", "FACEBOOK", "AMAZON" ], then it works as expected and shows all the logins. However you are are not allowed to manually edit aws-exports.js as it gets overridden. I am not sure why this is not working. I have re-done pulls and pushes but for some reason it won't update that aws_cognito_social_providers entry.

Thanks.

Expected behavior

I would expect the social providers to be:

   "aws_cognito_social_providers": [
    "GOOGLE", "FACEBOOK", "AMAZON"
],

after updating and have the all three of these providers added to the ss1 pic instead of ONLY google.

Reproduction steps

I had first added google as a social signon, but then later added facebook and amazon. perhaps it is related to subsequent adds of social signons.

ALSO, I just added a custom domain auth.mwire.io, perhaps that is related to the issue?

Code Snippet


// This is my aws-exports.js the XXXXXX were added by me.

{
    "aws_project_region": "us-east-1",
    "aws_cognito_identity_pool_id": "us-east-1:19db5017-9d8c-XXXXXX",
    "aws_cognito_region": "us-east-1",
    "aws_user_pools_id": "us-east-1_YvtcHXXXXXX",
    "aws_user_pools_web_client_id": "5haqdl0XXXXXX",
    "oauth": {
        "domain": "mwirewww-live.auth.us-east-1.amazoncognito.com",
        "scope": [
            "phone",
            "email",
            "openid",
            "profile",
            "aws.cognito.signin.user.admin"
        ],
        "redirectSignIn": "https://app.mwire.io/auth/",
        "redirectSignOut": "https://app.mwire.io/awsauth/",
        "responseType": "code"
    },
    "federationTarget": "COGNITO_USER_POOLS",
    "aws_cognito_username_attributes": [
        "EMAIL"
    ],
    "aws_cognito_social_providers": [
        "GOOGLE"
    ],
    "aws_cognito_signup_attributes": [
        "EMAIL"
    ],
    "aws_cognito_mfa_configuration": "OFF",
    "aws_cognito_mfa_types": [
        "SMS"
    ],
    "aws_cognito_password_protection_settings": {
        "passwordPolicyMinLength": 8,
        "passwordPolicyCharacters": []
    },
    "aws_cognito_verification_mechanisms": [
        "EMAIL"
    ],
    "aws_appsync_graphqlEndpoint": "https://-XXXXXXo3va.appsync-api.us-east-1.amazonaws.com/graphql",
    "aws_appsync_region": "us-east-1",
    "aws_appsync_authenticationType": "AMAZON_COGNITO_USER_POOLS",
    "aws_appsync_apiKey": "da2-usx4c5XXXXXX"
};

Log output

``` // Put your logs below this line ```

aws-exports.js

No response

Manual configuration

No response

Additional configuration

{
    "UserPool": {
        "Id": "us-east-1_YvtcH3gDC",
        "Name": "mwirewwwf17149d1_userpool_f17149d1-live",
        "Policies": {
            "PasswordPolicy": {
                "MinimumLength": 8,
                "RequireUppercase": false,
                "RequireLowercase": false,
                "RequireNumbers": false,
                "RequireSymbols": false,
                "TemporaryPasswordValidityDays": 7
            }
        },
        "LambdaConfig": {},
        "LastModifiedDate": 1619707045.438,
        "CreationDate": 1619707045.438,
        "SchemaAttributes": [
            {
                "Name": "sub",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": false,
                "Required": true,
                "StringAttributeConstraints": {
                    "MinLength": "1",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "name",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "given_name",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "family_name",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "middle_name",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "nickname",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "preferred_username",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "profile",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "picture",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "website",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "email",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": true,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "email_verified",
                "AttributeDataType": "Boolean",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false
            },
            {
                "Name": "gender",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "birthdate",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "10",
                    "MaxLength": "10"
                }
            },
            {
                "Name": "zoneinfo",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "locale",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "phone_number",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "phone_number_verified",
                "AttributeDataType": "Boolean",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false
            },
            {
                "Name": "address",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "updated_at",
                "AttributeDataType": "Number",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "NumberAttributeConstraints": {
                    "MinValue": "0"
                }
            },
            {
                "Name": "identities",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {}
            }
        ],
        "AutoVerifiedAttributes": [
            "email"
        ],
        "UsernameAttributes": [
            "email"
        ],
        "SmsVerificationMessage": "Your verification code is {####}",
        "EmailVerificationMessage": "Your verification code is {####}",
        "EmailVerificationSubject": "Your verification code",
        "VerificationMessageTemplate": {
            "SmsMessage": "Your verification code is {####}",
            "EmailMessage": "Your verification code is {####}",
            "EmailSubject": "Your verification code",
            "DefaultEmailOption": "CONFIRM_WITH_CODE"
        },
        "SmsAuthenticationMessage": "Your authentication code is {####}",
        "MfaConfiguration": "OFF",
        "EstimatedNumberOfUsers": 23,
        "EmailConfiguration": {
            "EmailSendingAccount": "COGNITO_DEFAULT"
        },
        "SmsConfiguration": {
            "SnsCallerArn": "arn:aws:iam::937201309862:role/snsf17149d1103449-live",
            "ExternalId": "mwirewf17149d1_role_external_id"
        },
        "UserPoolTags": {},
        "Domain": "mwirewww-live",
        "CustomDomain": "auth.mwire.io",
        "AdminCreateUserConfig": {
            "AllowAdminCreateUserOnly": false,
            "UnusedAccountValidityDays": 7
        },
        "UsernameConfiguration": {
            "CaseSensitive": false
        },
        "Arn": "arn:aws:cognito-idp:us-east-1:937201309862:userpool/us-east-1_YvtcH3gDC"
    }
}

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

amplify-ss3 amplify-ss6 aws-ss2 amplify-ss1

chrisbonifacio commented 2 years ago

Hi @jsgphd πŸ‘‹ I wasn't able to reproduce this on the latest version of the CLI (7.6.3) but I'll transfer this over to the CLI repo for better support. Thanks for raising this issue!

josefaidt commented 2 years ago

Hey @jsgphd :wave: are you also experiencing this with the latest version of the CLI?

jsgphd commented 2 years ago

Hey @jsgphd wave are you also experiencing this with the latest version of the CLI?

Same issue. I just upgraded to v7.6.3, removed my aws-config.js (just to be sure it was recreated), and did a amplify pull. It recreated the aws-config with the aws_cognito_social_providers having ONLY the google and is still missing the other social providers.

josefaidt commented 2 years ago

Thanks for trying that out @jsgphd ! Can you verify that walking through amplify update auth > Update OAuth Social Providers shows the correct social providers enabled?

jsgphd commented 2 years ago

amplify-auth

I first show the version and then show the amplify update auth settings.

The aws-config.js shows:

"oauth": { "domain": "mwirewww-live.auth.us-east-1.amazoncognito.com", "scope": [ "phone", "email", "openid", "profile", "aws.cognito.signin.user.admin" ], "redirectSignIn": "https://app.mwire.io/auth/", "redirectSignOut": "https://app.mwire.io/awsauth/", "responseType": "code" }, "federationTarget": "COGNITO_USER_POOLS", "aws_cognito_username_attributes": [ "EMAIL" ], "aws_cognito_social_providers": [ "GOOGLE" ], "aws_cognito_signup_attributes": [ "EMAIL" ], "aws_cognito_mfa_configuration": "OFF", "aws_cognito_mfa_types": [ "SMS" ], "aws_cognito_password_protection_settings": { "passwordPolicyMinLength": 8, "passwordPolicyCharacters": [] }, "aws_cognito_verification_mechanisms": [ "EMAIL" ],

josefaidt commented 2 years ago

Thanks @jsgphd for clarifying! Can you verify the contents of amplify/backend/auth/<resource-name>/cli-inputs.json has the following:

"authProvidersUserPool": [
  "Facebook",
  "Google",
  "LoginWithAmazon"
],
"hostedUIProviderMeta": "[{\"ProviderName\":\"Facebook\",\"authorize_scopes\":\"email,public_profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"id\"}},{\"ProviderName\":\"Google\",\"authorize_scopes\":\"openid email profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"sub\"}},{\"ProviderName\":\"LoginWithAmazon\",\"authorize_scopes\":\"profile profile:user_id\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"user_id\"}}]",

This should also be shown in the build/parameters.json file.

May you also verify whether running amplify env checkout <current-env-name> updates the aws-exports.js file as expected?

jsgphd commented 2 years ago

Thanks @josefaidt: Running amplify env checkout made no difference aws-exports is the same.

My cli-inputs has this: "authProvidersUserPool": [ "Facebook", "Google", "LoginWithAmazon" ], "hostedUIProviderMeta": "[{\"ProviderName\":\"Facebook\",\"authorize_scopes\":\"email,public_profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"id\"}},{\"ProviderName\":\"Google\",\"authorize_scopes\":\"openid email profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"sub\"}},{\"ProviderName\":\"LoginWithAmazon\",\"authorize_scopes\":\"profile profile:user_id\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"user_id\"}}]",

My build/parameters.json does not exist as I run it using "start:dev"

However I just ran a build and it still doesn't have a parameter.json file in that build directory.

josefaidt commented 2 years ago

Ah my apologies @jsgphd that parameters path should be amplify/backend/auth/<resource-name>/build/parameters.json. Do you mind emailing a sharable link to a zip file of your amplify/ directory to further investigate? I am unable to reproduce this issue

jsgphd commented 2 years ago

I have a lot of confidential info in there so I can't send you a zip. BUT we can do a screen share together to help debug it? Send email to jason@mwire.io to move off this public forum to schedule that.

that build file has:

{ "CreateAPIKey": 1, "AppSyncApiName": "mwireLiveAPI", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false, "AuthCognitoUserPoolId": { "Fn::GetAtt": [ "authmwirewwwf17149d1", "Outputs.UserPoolId" ] }, "authRoleName": { "Ref": "AuthRoleName" }, "S3DeploymentBucket": "amplify-mwirewww-live-103449-deployment", }

josefaidt commented 2 years ago

Hey @jsgphd sure! And that output looks to be the contents of your GraphQL API's parameters.json

jsgphd commented 2 years ago

Sorry! So this must be the issue, it doesn't match the cli-inputs for some reason.

"authProvidersUserPool": [
    "Google"
],
"hostedUIProviderMeta": "[{\"ProviderName\":\"Google\",\"authorize_scopes\":\"openid email profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"sub\"}}]",
sachscode commented 2 years ago

Hi @jsgphd Could you please share the version with which you had originally configured Auth for ( Facebook, Google and Amazon) prior to the problem mentioned ( https://github.com/aws-amplify/amplify-cli/issues/9313#issuecomment-994832238 )

jsgphd commented 2 years ago

Don’t remember. But, still wondering how to fix this issue? Should I delete all social and recreate or something else? I really need a work around already please.

lazpavel commented 2 years ago

Hi @jsgphd, when you updated from using just 1 social provider to 3, did you updated through the amplify command, amplify update auth or did you updated the user pool in the console and followed with amplify pull ?

jsgphd commented 2 years ago

I think it was on the console and then I did a pull... Then I tried adding it locally and pushing... to try to get it to work. Any idea how to fix this (a work around) on my side to get it to work now?

On Tue, Jan 4, 2022 at 1:41 PM Pavel Lazar @.***> wrote:

Hi @jsgphd https://github.com/jsgphd, when you updated from using just 1 social provider to 3, did you updated through the amplify command, amplify update auth or did you updated the user pool in the console and followed with amplify pull ?

β€” Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-cli/issues/9313#issuecomment-1005075567, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2EC2HEIF5DQ5UL5C62ONDUUM5NVANCNFSM5KCE63PA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

lazpavel commented 2 years ago

While I'm looking into it. Can you try to do a amplify remove auth && amplify push followed by an amplify add auth and add all 3 social providers and then amplify push?

lazpavel commented 2 years ago

Manual changes in the console on a user pool followed by amplify pull is not supported. I am unable to reproduce the issue by adding/updating the user pool using amplify add auth/amplify update auth followed by amplify pull. If you still need to use the original user pool and cannot create a new one, you should be able to do amplify remove auth followed by amplify auth import.

Please let us know if the provided information helped.

vifox001 commented 2 years ago

Manual changes in the console on a user pool followed by amplify pull is not supported. I am unable to reproduce the issue by adding/updating the user pool using amplify add auth/amplify update auth followed by amplify pull. If you still need to use the original user pool and cannot create a new one, you should be able to do amplify remove auth followed by amplify auth import.

Please let us know if the provided information helped.

My have similar issue. I have configured Google and OpenID Connect in the console. image

I tried to run amplify remove auth then amplify auth import, but only see the "aws_cognito_social_providers": [ "GOOGLE" ] I'm using amplify cli 7.6.5.

josefaidt commented 2 years ago

Closing due to inactivity. @jsgphd if you are still experiencing this issue please reply back to this thread and we can re-open to investigate further πŸ™‚

@vifox001 if you are also still experiencing your issue please create a separate bug

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.