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달 전149회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠