We are trying to make a call to the /auth/oauth/v2/token endpoint inside a gateway policy but there is no response. The call works fine from Postman and other client applications.
API Gateway 10.0
The call is failing on the gateway because there is no request body being passed to the /auth/oauth/v2/token endpoint (the policy fails on the Validate HTML Form Data assertion).
The overall goal is to generate an access token within a policy. This can be done with a Set Context Variable assertion and Route via HTTP(S) assertion. See the attached sample policy.