Message 1 of 1
Error running the web sample application(WebAppUseUserLicense) in the Vault 2024 SDK folder!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am subscribing to an Autodesk ID to use Vault.
Using APS, I generated a client_id and client_secret, and obtained a token via https://developer.api.autodesk.com/authentication/v2/token.
However, when I tried to connect to Vault using the token as described below, I encountered the error:
'Operation failed: System error. Please contact your system administrator.
VDF.Vault.Results.LogInResult results;
if (cbUseAutodeskId.Checked)
{
AutodeskAccount adAccount = AutodeskAccount.BuildAccountAsync(tbToken.Text).Result;
results = VDF.Vault.Library.ConnectionManager.LogInWithUserLicense(
tbServerName.Text, tbVaultName.Text, adAccount, VDF.Vault.Currency.Connections.AuthenticationFlags.AutodeskAuthentication, null); //Standard is same error
}
else
{
results = VDF.Vault.Library.ConnectionManager.LogInWithUserLicense(
tbServerName.Text, tbVaultName.Text, tbUserName.Text, tbPassword.Text, tbToken.Text, VDF.Vault.Currency.Connections.AuthenticationFlags.UserTokenLicense, null);
}
m_conn = results.Connection;
if (m_conn != null)
{
lbStatus.Text = "Login finished.";
Session["conn"] = m_conn;
Panel0.Visible = false;
Panel2.Visible = false;
Panel3.Visible = true;
}
else
{
lbStatus.Text = "Login failed with error: " + results.ErrorMessages.Values.ToList().Aggregate( (a,b) => a + "; " + b);
}
I cannot figure out what the issue might be.
I want to use the token-based method to enable web services on the Vault server, but I am unable to resolve the issue.
Currently, the Vault client is installed on the Vault server.
Thank you.