InitiateAuth command to Cognito User Pools in custom query

0

I try to setup my custom connection without any SDK in Salesforce Apex to control a User Pool. The first I try to setup a POST query with InitiateAuth command. It looks like:

curl --location 'https://cognito-idp.us-east-1.amazonaws.com'
--header 'X-Amz-Target: AWSCognitoIdentityProviderService.InitiateAuth'
--header 'Content-Type: application/x-amz-json-1.1'
--data-raw '{ "AuthFlow": "USER_PASSWORD_AUTH", "ClientId": "tests11hrd1ejlahf48t", "AuthParameters": { "USERNAME": "user@share.com", "PASSWORD": "pass" } }'

The answer: __type": "ResourceNotFoundException", "message": "User pool client testejlahf48t does not exist."

Please, anybody tell me how to setup custom connection InitiateAuth?

Igor
已提問 3 個月前檢視次數 150 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南