Home > Blockchain >  how to get access token from vscode forge extension?
how to get access token from vscode forge extension?

Time:06-13

@ 12:29 of Petr's YouTube video https://www.youtube.com/watch?v=8It7_3Mct6c, I noticed that access token can be retrieved directly, how to do it? many Autodesk Forge tools seem lack of this feature or not documented i.e. https://oss-manager.autodesk.io/, https://da-manager.autodesk.io/

CodePudding user response:

It's just an extension command provided by Petr's Forge vscode extension. In this context, it is called Forge Oauth API to generate an access token.

See:

https://github.com/petrbroz/vscode-forge-tools/blob/2a406c4fc7d0135eeef2e451dbfedc12534cd321/src/commands/authentication.ts#L57

Steps to get access token with this extension command:

  1. Go to the Forge vscode extension by clicking the Forge icon at the left sidebar.
  2. Press F1 to open the command palette.
  3. Type Forge Auth
  4. Press enter
  5. Enter OAuth scopes
  6. Press enter
  • Related