5

In AppSync when I try to Login via Cognito User Pools and enters ClientID it gives an error Use a clientId without a client secret.

I am entering only ClientID but it not proceeding

enter image description here

Haseeb Ahmad
  • 7,914
  • 12
  • 55
  • 133
  • The app client for your user pool is probably configured with a client secret. However AppSync seems to require an app client without client secret. – Dunedan Feb 02 '20 at 17:57
  • @Dunedan where i can find that? – Haseeb Ahmad Feb 02 '20 at 21:04
  • You can check your client configuration on the user pool to see if it requires a client secret. @Dunedan is correct, AppSync supports only clients without a client secret. – Ionut Trestian Feb 10 '20 at 20:05

2 Answers2

8
  1. Go to your user pool in the console.
  2. Go to General Settings -> App Clients (NOT App Integration -> App client settings)
  3. Click on "Show details" under each one.
  4. Look at the "App client secret" field.

In my case Amplify had created two app clients for me, one with _app_client at the end, which had a client secret. One with _app_clientWeb at the end which had no client secret. They appeared to be otherwise identical. You want to select the App Client id from the one without the secret, or create a new app client that has no secret.

RandomEngy
  • 14,931
  • 5
  • 70
  • 113
3

I had the same issue, it seems that AppSync doesnt allow using a user pool that has a client secret, so i created new user pool and I unchecked the generate client secret option while creating the App Client. Now it is working well.

M.z
  • 51
  • 5
  • This led me to my solution. Creating a new app client didn't work but by using the original app client without a secret and adding localhost to the sign in/out URL's fixed the issue for me. – Michael Hallabrin Apr 12 '21 at 18:23