SqlConnectionInfo.AuthenticationMethod 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
登入時使用的驗證方法
public enum SqlConnectionInfo.AuthenticationMethod
type SqlConnectionInfo.AuthenticationMethod =
Public Enum SqlConnectionInfo.AuthenticationMethod
- 繼承
-
SqlConnectionInfo.AuthenticationMethod
欄位
| 名稱 | 值 | Description |
|---|---|---|
| NotSpecified | 0 | NotSpecified 意味著真正的認證類型是從其他 連接字串 參數推斷出來的 |
| SqlPassword | 1 | 使用者 ID 與密碼用於 SQL 登入驗證 |
| ActiveDirectoryPassword | 2 | User ID 是 Azure AD principal |
| ActiveDirectoryIntegrated | 3 | 目前使用 AD 或 Kerberos 主體憑證來連線 |
| ActiveDirectoryInteractive | 5 | 使用互動式介面流程來取得代幣以進行認證。 使用者識別碼為可選。 |
| ActiveDirectoryDeviceCodeFlow | 6 | 提示使用者從外部裝置取得代幣 |
| ActiveDirectoryManagedIdentity | 7 | 使用系統指派或使用者指派的管理身份來取得憑證。 |
| ActiveDirectoryMSI | 7 | ActiveDirectoryManagedIdentity 的別名 |
| ActiveDirectoryServicePrincipal | 8 | 使用者 ID 是 Azure 服務主體的用戶端 ID,密碼則是用戶端秘密。 |
| ActiveDirectoryDefault | 9 | 嘗試依序使用多種非互動式認證方法取得存取權杖。 此方法不會退回到 Active Directory 互動式認證方法。 |