Autodesk Platform Services application built by following the Hubs Browser tutorial from https://tutorials.autodesk.io.
- APS credentials
- Provisioned access to BIM 360 Docs or Autodesk Construction Cloud
- .NET 6
- Command-line terminal such as PowerShell or bash (should already be available on your system)
We recommend using Visual Studio Code which, among other benefits, provides an integrated terminal as well.
- Clone this repository:
git clone https://github.com/autodesk-platform-services/aps-hubs-browser-dotnet
- Go to the project folder:
cd aps-hubs-browser-dotnet
- Install .NET dependencies:
dotnet restore
- Open the project folder in a code editor of your choice
- Create an appsettings.Development.json file in the project folder (if it does not exist already),
and populate it with the JSON snippet below, replacing
<client-id>
and<client-secret>
with your APS Client ID and Client Secret:
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"APS_CLIENT_ID": "<client-id>",
"APS_CLIENT_SECRET": "<client-secret>",
"APS_CALLBACK_URL": "http://localhost:8080/api/auth/callback"
}
For applications deployed to a custom domain, the callback URL will be
http://<your-domain>/api/auth/callback
orhttps://<your-domain>/api/auth/callback
. Do not forget to update the callback URL for your application in https://forge.autodesk.com/myapps as well.
- Run the application, either from your code editor, or by running
dotnet run
in terminal - Open http://localhost:8080
When using Visual Studio Code, you can run & debug the application by pressing
F5
.
Please contact us via https://forge.autodesk.com/en/support/get-help.
This sample is licensed under the terms of the MIT License. Please see the LICENSE file for more details.