{"id":15016154,"url":"https://github.com/chuongmep/revitaddin.auth.example","last_synced_at":"2025-07-04T07:32:35.166Z","repository":{"id":238632473,"uuid":"797060853","full_name":"chuongmep/RevitAddin.Auth.Example","owner":"chuongmep","description":"Demo Example Authentication Autodesk Account Revit Add-in Use Autodesk Platform Services","archived":false,"fork":false,"pushed_at":"2024-05-07T06:05:52.000Z","size":168,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T06:41:34.629Z","etag":null,"topics":["aps","autodesk","forge","oauth2","revit-addin","revit-api"],"latest_commit_sha":null,"homepage":"https://chuongmep.com/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chuongmep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-07T05:58:14.000Z","updated_at":"2024-07-21T08:18:22.000Z","dependencies_parsed_at":"2024-05-07T07:25:09.885Z","dependency_job_id":"66038639-10be-457d-9050-40351d124906","html_url":"https://github.com/chuongmep/RevitAddin.Auth.Example","commit_stats":null,"previous_names":["chuongmep/revitaddin.auth.example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuongmep%2FRevitAddin.Auth.Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuongmep%2FRevitAddin.Auth.Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuongmep%2FRevitAddin.Auth.Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuongmep%2FRevitAddin.Auth.Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chuongmep","download_url":"https://codeload.github.com/chuongmep/RevitAddin.Auth.Example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239568241,"owners_count":19660641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aps","autodesk","forge","oauth2","revit-addin","revit-api"],"created_at":"2024-09-24T19:48:28.632Z","updated_at":"2025-02-18T23:27:52.050Z","avatar_url":"https://github.com/chuongmep.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo Revit Add-in Autodesk Desktop Authentication PKCE\n\nIntroduction 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](https://aps.autodesk.com/en/docs/oauth/v2/tutorials/get-3-legged-token-pkce/)).\n\n![](./docs/desktop-mobile-spa1.png)\n\n## Description\n\nThe 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.\n\n\n## Usage\n\n- Create a application from website [`aps.autodesk.com`](https://aps.autodesk.com/)\n\n![](docs/hero.png)\n\n- Copy the `client_id` value to environment variable `CLIENT_ID` or use command line to set the value\n\n```bash\nset CLIENT_ID=your_client_id\n```\n\n- 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 \n\n```csharp\n string callBackUrl = \"http://localhost:8080/api/auth/callback\";\n```\n\n- Debug the add-in and run command demo example to see the authentication process and token.\n\n## Video Demo \n\n\n[![Demo](https://img.youtube.com/vi/2mP2GuMZsUw/0.jpg)](https://www.youtube.com/embed/2mP2GuMZsUw?si=rGDNedpmReAhlEtk)\n\n\n## License MIT\n\nThe repository is licensed under the MIT license. For more information see the [LICENSE](LICENSE) file.\n\n\n## Learning Resources\n\n- Github 3Leg CSharp - https://github.com/chuongmep/aps-toolkit-3leg-csharp\n- Auth PKCE Csharp - https://github.com/chuongmep/aps-tookit-auth-3leg-pkce\n- Auth 3Leg Python Autodek - https://chuongmep.com/posts/2024-05-01-get-3leg-aps-with-python.html\n- https://github.com/ricaun-io/ricaun.Revit.UI.Tasks\n- https://github.com/autodesk-platform-services/aps-pkce-desktop-app\n- https://github.com/autodesk-platform-services/aps-pkce-webapp\n- https://aps.autodesk.com/blog/new-application-types\n- https://github.com/JoaoMartins-callmeJohn/PKCE-TEST","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuongmep%2Frevitaddin.auth.example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchuongmep%2Frevitaddin.auth.example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuongmep%2Frevitaddin.auth.example/lists"}