Unable to exchange JWT token into AWS credentials

0

Hi, I want to configure a machine-to-machine connection. I created cognito user pool as a identity provider and also Cognito identity pool. Then I configured it together, and set client_credentials as "OAuth 2.0 grant type" following the AWS docs. Then in postman I am able to get access token using /token endpoint but this token cannot be used to get cognito identity id (GetId API call) because of the following error:

An error occurred (NotAuthorizedException) when calling the GetId operation: Invalid login token. Missing a required claim: aud

I also tried AssumeRoleWithWebIdentity but it also fails. I guess I need id_token not access token but don't know how I can obtain that.

Mateusz
질문됨 3달 전56회 조회
답변 없음

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

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

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