Forge - APP Authentication - Obtaining 2-Legged Token

Forge - APP Authentication - Obtaining 2-Legged Token

tkeyser5
Advocate Advocate
1,176 Views
2 Replies
Message 1 of 3

Forge - APP Authentication - Obtaining 2-Legged Token

tkeyser5
Advocate
Advocate

What is the trick to obtaining the 2-legged token?  I have tried, to no avail, by following these instructions:

https://forge.autodesk.com/en/docs/oauth/v2/tutorials/get-2-legged-token/

It shows you have to replace the Client ID and the Secret but does not say what editing tool is required or how this is actually done. I have tried using Node.js and Ruby. I get syntax errors.

This should not be this difficult. So if anyone can shed some light I would be eternally grateful.

Thanks.

0 Likes
1,177 Views
2 Replies
Replies (2)
Message 2 of 3

rosalesduquej
Alumni
Alumni

Please note that normally the best way to obtain support for Autodesk Forge APIs is through the Forge API help. Please visit https://developer.autodesk.com/en/support/get-help for information.

 

The Forge API's are REST based API's so using any tool to point to an endpoint of the API will return a JSON response including the information requested. In your case a 2 legged authentication token. 

 

Something like POSTMAN or Insomnia REST could be 2 applications to handle different API calls, it is quite a nice set of tools to retrieve this responses. 

 

On the code side, we have different SDK's that address the Forge Platform API's, we have a NPM for Node called forge-apis and a Nuget for .NET development and also a Java Maven which includes already the functions to use the platform. 

 

Check this tutorial workflow here - http://learnforge.autodesk.io/#/ 

 

Also you could simply use this from your Terminal/ Command Prompt, I wrote a blog post a while ago to do a simple workflow to use the Forge API's. Check it out here: https://forge.autodesk.com/blog/tutorial-using-curl-2-legged-authentication-model-translation  

 

Let us know if you need any further help.



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes
Message 3 of 3

tkeyser5
Advocate
Advocate

Acceptable. Thanks.

0 Likes