dotConnect for Dynamics 365 Documentation
Devart.Data.Dynamics Namespace / AuthenticationType Enumeration

AuthenticationType Enumeration
Determines the authentication method to use for connecting to Dynamics CRM.
Syntax
'Declaration
 
Public Enum AuthenticationType 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
 
Members
MemberDescription
RefreshTokenOAuth 2.0 authentication. You need to specify the DynamicsConnectionStringBuilder.Server, DynamicsConnectionStringBuilder.RefreshToken, DynamicsConnectionStringBuilder.ClientId, and DynamicsConnectionStringBuilder.ClientSecret parameters for this kind of authentication. The easiest way to use it is to create a connection at design time in Server Explorer. In this case you may omit specifying the Client ID and Client Secret and obtain the Refresh Token simply by signing in to Dynamics CRM at design time.
UserNamePasswordUsername/password authentication. You need to set the DynamicsConnectionStringBuilder.Server, DynamicsConnectionStringBuilder.UserId, and DynamicsConnectionStringBuilder.Password properties for this kind of authentication.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Devart.Data.Dynamics.AuthenticationType

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also