a simple demo working with 3legged token process of Forge in Node command line
For using this sample, you will need Developer credentials of Forge. Visit the Forge Developer, Log in or Sign up, follow the steps to create the Application. For this test, use http://localhost:1234/token/forgeoauth as redirect_uri. Finally, take note of the client_id and client_secret and input to config.js.
The code sample demos 3 legged token process
- a browser will pop out to ask for loging Autodesk account, after granted, it will be redirected to the code.
- command line will dump the token and refresh token.
- a progress bar starts, after specific time, a new token and refresh token will be generated.