使用伪造 DA 获取访问令牌的问题
Issue with getting Access token using forge DA
我正在尝试使用下面的代码使用 Forge DA 获取访问令牌。但它会抛出以下 exception:
An exception of type 'Autodesk.Forge.Client.ApiException' occurred in mscorlib.dll but was not handled in user code. Additional information: Error calling Authenticate: The underlying connection was closed: An unexpected error occurred on a send.
这是我的代码:
TwoLeggedApi oAuth = new TwoLeggedApi();
dynamic token = await oAuth.AuthenticateAsync(
txtClientId.Text,
txtClientSecret.Text,
oAuthConstants.CLIENT_CREDENTIALS ,
new Scope[] { Scope.BucketRead, Scope.BucketCreate, Scope.DataRead, Scope.DataWrite });
我正在尝试使用下面的代码使用 Forge DA 获取访问令牌。但它会抛出以下 exception:
An exception of type 'Autodesk.Forge.Client.ApiException' occurred in mscorlib.dll but was not handled in user code. Additional information: Error calling Authenticate: The underlying connection was closed: An unexpected error occurred on a send.
这是我的代码:
TwoLeggedApi oAuth = new TwoLeggedApi();
dynamic token = await oAuth.AuthenticateAsync(
txtClientId.Text,
txtClientSecret.Text,
oAuthConstants.CLIENT_CREDENTIALS ,
new Scope[] { Scope.BucketRead, Scope.BucketCreate, Scope.DataRead, Scope.DataWrite });