Web Service Manager with Windows Authentication

Web Service Manager with Windows Authentication

Anonymous
Not applicable
1,963 Views
1 Reply
Message 1 of 2

Web Service Manager with Windows Authentication

Anonymous
Not applicable

Hi Everybody,

 

I'm using SDK Autodesk Vault 2017 for develop an ASP.NET application in C# throught web service manager, but I have some issues, I need that users connect to application with Windows Authentication and I found two instances: WinAuthServices and WinAuthCredentials, so my doubt is which I need to use or what configuration I need to follow to establish connection with Vault.

 

Kind Regards

Jonathan

0 Likes
Accepted solutions (1)
1,964 Views
1 Reply
Reply (1)
Message 2 of 2

psaarloos
Collaborator
Collaborator
Accepted solution

Hi Jonathan,

 

Best way to get a connection to Vault is by using the ConnectionManager. The LogIn method just needs a server and vault name in case you are using Windows Authentication. (username and password arguments are ignored).

 

using VDF = Autodesk.DataManagement.Client.Framework;

VDF.Vault.Results.LogInResult result = null;
result = VDF.Vault.Library.ConnectionManager.LogIn(server, vault, string.Empty, string.Empty, VDF.Vault.Currency.Connections.AuthenticationFlags.ReadOnly | VDF.Vault.Currency.Connections.AuthenticationFlags.WindowsAuthentication, null);
                        

The LogInResult object has a Connection property of type 'VDF.Vault.Currency.Connections.Connection'. From there you have also access to the WebServiceManager which provides access to the low level Web Services API, which exposes 100% of the vault server functionality.

 

 

Hope this helps.

Regards,
Pim Saarloos
Product Manager
If my post answers your question, please click the "Accept as Solution" button. Kudos are much appreciated!