Message 1 of 1
Vault Login Credentials with VB.net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So our company historically uses Windows Authentications for Vault login, and now I have some users that need to use AutodeskID. I have written several programs that work flawlessly with vb.net and login, but now I cannot figure out windows authentications, and I believe it is in the Authentication Flag. Below is how I use the Windows login using VB.net I am thinking its in the Flag, I have tried both AutodeskAuthentication and UserTokenLicense. What am I missing? Also Vault Pro 2022.2
Dim FlagType As VDF.Vault.Currency.Connections.AuthenticationFlags = Nothing
FlagType = VDF.Vault.Currency.Connections.AuthenticationFlags.WindowsAuthentication
VConnection = VDF.Vault.Library.ConnectionManager.LogIn(VaultServer, VaultName, "", "", FlagType, Nothing).Connection
I have tried the below to login methods but they never work.
Dim FlagType As VDF.Vault.Currency.Connections.AuthenticationFlags = Nothing
FlagType = VDF.Vault.Currency.Connections.AuthenticationFlags.AutodeskAuthentication
VConnection = VDF.Vault.Library.ConnectionManager.LogIn(VaultServer, VaultName, "", "", FlagType, Nothing).Connection
Dim FlagType As VDF.Vault.Currency.Connections.AuthenticationFlags = Nothing
FlagType = VDF.Vault.Currency.Connections.AuthenticationFlags.UserTokenLicense
VConnection = VDF.Vault.Library.ConnectionManager.LogIn(VaultServer, VaultName, "", "", FlagType, Nothing).Connection