我已经在Visual Studio中打开了forge-api-dotnet-client,并遵循README.md到达此步骤-“在Forge Developer门户上创建一个应用程序。记下客户端密钥和客户端密钥。”
如何使用forge-api-dotnet-client-https://github.com/Autodesk-Forge/forge-api-dotnet-client运行三腿令牌代码以创建同意页面URL。
还有如何在我们的项目中使用forge-api-dotnet-client?
如果您通过该仓库的自述文件,将会发现以下代码段来生成身份验证URL:
// Generate a URL page that asks for permissions for the specified scopes, and call our default web browser.
string oauthUrl =_threeLeggedApi.Authorize (FORGE_CLIENT_ID, oAuthConstants.CODE, FORGE_CALLBACK, _scope) ;
System.Diagnostics.Process.Start (new System.Diagnostics.ProcessStartInfo (oauthUrl)) ;
然后将其简单地适合您自己的应用程序,并将用户重定向到生成的链接以登录并完成授权。