Amazon Cognito OAuth2 Rest configuration


Wanted to configure OAuth2 REST account to be configured in Snaplogic. Underlaying the REST calls are deployed in Amazon Cognito. Please check the screenshot below, We have configured all the required parameters, but could not get access token. It is redirecting to new page and access tokens are showing up in URL parameter.

Can someone help us out how to configure AWS Cognito APIs in Snaplogic?