design.automation-nodejs-revit.parameters.excel
design.automation-nodejs-revit.parameters.excel copied to clipboard
Invallid redirect_uri
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: