I'm getting a 403 response when trying to obtain an access token through oauth.
The error is:
This distribution is not configured to allow the HTTP request method that was used for this request. The
distribution supports only cachable requests.
I don't use Amazon (I'm just trying to request the token through postman), this error seems to be originating from hubspot, but I don't see anywhere for me to enable POST operation.
It is an authorization url that would request a browser.
If you're building an app, your team would need to create a get route handler to redirect users to the authorization url. Next, from the get route handler, obtain the code from the redirected uri and exchange it for tokens.
I'm sure I'm setting something up incorrectly through postman, but not sure what.
Here's the OAuth setup I'm using:
I am getting the popup to authorize, but the response I get back is :
Error: Could not complete OAuth 2.0 token request: {"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<HTML><HEAD><META HTTP-EQUIV":"\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n<TITLE>ERROR: The request could not be satisfied</TITLE>\n</HEAD><BODY>\n<H1>403 ERROR</H1>\n<H2>The request could not be satisfied.</H2>\n<HR noshade size=\"1px\">\nThis distribution is not configured to allow the HTTP request method that was used for this request. The distribution supports only cachable requests.\nWe can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.\n<BR clear=\"all\">\nIf you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.\n<BR clear=\"all\">\n<HR noshade size=\"1px\">\n<PRE>\nGenerated by cloudfront (CloudFront)\nRequest ID: Bk8DtPUESyFFPmDPrcy_crqTejSGqqJvTJidnW5mbK8PCuHtl5764Q==\n</PRE>\n<ADDRESS>\n</ADDRESS>\n</BODY></HTML>"}
As I mentioned on my previous response, the step Initiate an integration with OAuth 2.0isn't configured to accept any GET/POST method. This means that you wouldn't be able to use Postman to call this endpoint as it is not an endpoint.
It is an authorization url that would request a browser. i.e. htttps://www.googe.com.
You wouldn't be able to call https://www.google.com over Postman as it is a browser url.