Skip to content

Demo Example Authentication Autodesk Account Revit Add-in Use Autodesk Platform Services

License

Notifications You must be signed in to change notification settings

chuongmep/RevitAddin.Auth.Example

Repository files navigation

Demo Revit Add-in Autodesk Desktop Authentication PKCE

Introduction The purpose of this sample is demonstrate a quick way to test and obtain your three legged tokens using PKCE method in the context of a single page app (you can refer here for more details).

Description

The add-in is a simple Revit add-in that will authenticate with Autodesk Desktop Authentication using PKCE method. The add-in will open a browser window to authenticate with Autodesk Desktop Authentication. Once authenticated, the add-in will obtain the access token and refresh token and store them in the Revit document.

Usage

  • Copy the client_id value to environment variable CLIENT_ID or use command line to set the value
set CLIENT_ID=your_client_id
  • Create a callback URL in the format http://localhost:8080/api/auth/callback and add it to the Redirect URIs in the application settings, and then replace inside the code at command
 string callBackUrl = "http://localhost:8080/api/auth/callback";
  • Debug the add-in and run command demo example to see the authentication process and token.

Video Demo

Demo

License MIT

The repository is licensed under the MIT license. For more information see the LICENSE file.

Learning Resources

About

Demo Example Authentication Autodesk Account Revit Add-in Use Autodesk Platform Services

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages