How does autodesk forge automatically get accessToken (JS or c-sharp)

how does autodesk forge get accessToken (JS or c-sharp automatically? In other words, how to automatically obtain the accesstoken below?
clipboard.png

Feb.28,2021

the accessToken, cannot be obtained from the front end for security reasons, so you need to start from the back end. At this point, there are two options:

  1. write a Web API, to get Access Token through the API Controller of ASP.NET. In this Web API, call Forge OAuth API to get the front end Forge Viewer of Access Token,. This head calls the Web API to get Token, through AJAX. For more information, please see:

  2. write Proxy through ASP.NET to direct all access actions related to Forge service to your own back-end application, and request Token and converted model data from Forge service directly through the back-end application. For more information, please see https://forge.autodesk.com/bl..

I hope this is helpful to you!

Menu