design.automation-nodejs-revit.parameters.excel icon indicating copy to clipboard operation
design.automation-nodejs-revit.parameters.excel copied to clipboard

Invallid redirect_uri

Open hungnguyendinh1999 opened this issue 1 year ago • 1 comments

Hi all!

I am able to run this on local and Heroku. However, when I try to login to Autodesk on both, it returns an error: "400 - Invalid redirect_uri". In the Terminal, it's outputing failed to get token due to AxiosError: Request failed with status code 400

I use a Macbook. I already followed the README and set the Environment variables.

When I remove the redirect_uri in the URL, it returns "Success" string on the screen, but doesn't complete the authentication.

Autodesk login URL: https://auth.autodesk.com/as/authorization.oauth2?client_id=BPLQCIBqwGlYgHkmF6aHzXbUB7t3qlfI&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fapi%2Fforge%2Fcallback%2Foauth&response_type=code&pfidpadapterid=Oauth2OpenTokenIDPAdapter&scope=code:all%20bucket:create%20bucket:read%20data:read%20data:create%20data:write&aud=https%3A%2F%2Fautodesk.com%2Faud%2Fajwtexp60 (To reiterate, the same issue happens on heroku)

Error message: Screen Shot 2023-02-06 at 09 22 06

hungnguyendinh1999 avatar Feb 06 '23 02:02 hungnguyendinh1999