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 次
沒有答案

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

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

回答問題指南