SqlConnectionInfo.AuthenticationMethod 列挙型

定義

ログインに使用する認証方法

public enum SqlConnectionInfo.AuthenticationMethod
type SqlConnectionInfo.AuthenticationMethod = 
Public Enum SqlConnectionInfo.AuthenticationMethod
継承
SqlConnectionInfo.AuthenticationMethod

フィールド

名前 説明
NotSpecified 0

NotSpecified は、実際の認証の種類が他の接続文字列 パラメーターから推論されていることを意味します

SqlPassword 1

SQL ログイン認証にはユーザー ID とパスワードが使用されます

ActiveDirectoryPassword 2

ユーザー ID は Azure AD プリンシパルです

ActiveDirectoryIntegrated 3

現在の AD または Kerberos プリンシパルの資格情報は、接続に使用されます

ActiveDirectoryInteractive 5

対話型 UI フローを使用して、認証するトークンを取得します。 ユーザー ID は省略可能です。

ActiveDirectoryDeviceCodeFlow 6

外部デバイスからトークンを取得するようにユーザーに求める

ActiveDirectoryManagedIdentity 7

システム割り当てマネージド ID またはユーザー割り当てマネージド ID を使用してトークンを取得します。

ActiveDirectoryMSI 7

ActiveDirectoryManagedIdentity のエイリアス

ActiveDirectoryServicePrincipal 8

ユーザー ID は、Azure サービス プリンシパルのクライアント ID であり、パスワードはクライアント シークレットです。

ActiveDirectoryDefault 9

アクセス トークンの取得を順番に試行した複数の非対話型認証方法を試行します。 この方法は、Active Directory 対話型認証方法にはフォールバックしません。

適用対象