amplify-cli: InvalidParameterException: client_id, client_secret and authorize_scopes are all required idp details

Before opening, please confirm:

JavaScript Framework

React

Amplify APIs

Authentication, REST API

Amplify Categories

auth, function, api

Environment information

System:
    OS: macOS 11.4
    CPU: (8) x64 Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
    Memory: 167.04 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.7.0 - /usr/local/bin/node
    Yarn: 1.22.11 - /usr/local/bin/yarn
    npm: 7.20.3 - /usr/local/bin/npm
    Watchman: 2021.08.02.00 - /usr/local/bin/watchman
  Browsers:
    Chrome: 93.0.4577.82
    Firefox: 92.0
    Safari: 14.1.1
  npmGlobalPackages:
    @aws-amplify/cli: 0.2.2-multienv.1
    express-generator: 4.16.1
    firebase-tools: 9.10.0
    npm: 7.20.3
    pnpm: 5.18.9
    react-native-cli: 2.0.1
    sass: 1.32.11
    typescript: 3.9.9



Describe the bug

We added auth to our application with amplify add auth and choose the “Default with Social” and added Facebook and Google SignIn (Amplify asked for the facebook id & secret, google id, …) and everythings worked fine and the social login in the frontend worked. After the next deployment with amplify push that contained no changes to the auth the update of the stack fails with the following detailed error in cloud watch:

{
    "Status": "FAILED",
    "Reason": "See the details in CloudWatch Log Stream: 2021/09/23/[$LATEST]45161df026574067a9678add6aad67a1",
    "PhysicalResourceId": "2021/09/23/[$LATEST]45161df026574067a9678add6aad67a1",
    "StackId": "arn:aws:cloudformation:eu-central-1:.......",
    "RequestId": "9fe9e56e-4984-46a7-a86e-ee431b9cddad",
    "LogicalResourceId": "HostedUIProvidersCustomResourceInputs",
    "NoEcho": false,
    "Data": {
        "err": {
            "message": "client_id, client_secret and authorize_scopes are all required idp details.",
            "code": "InvalidParameterException",
            "time": "2021-09-23T22:20:17.201Z",
            "requestId": "64171589-5e86-487b-869c-83b698072efa",
            "statusCode": 400,
            "retryable": false,
            "retryDelay": 92.76778608494173
        }
    }
}

Where do we have to configure the client_id, client_secret and authorize_scopes?

Expected behavior

The stack should build successfully.

Reproduction steps

  1. Setup a new amplify project
  2. Apply default configuration with Social Provider (Federation) and add Google and Facebook with Hosted UI
  3. amplify push
  4. Do some changes e.g change token validity from 30 to 90 days and run amplify push again.
  5. Now the deployment fails

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 15 (4 by maintainers)

Most upvoted comments

I fixed this by running amplify auth update -> Update social providers and re-entering my google web client id and secret. It deployed fine after that.