Comparing version 18.2.4 to 18.3.0
@@ -10,2 +10,3 @@ /// <reference types="node" /> | ||
import { type SecureContextOptions } from 'tls'; | ||
import { type TokenCredential } from '@azure/core-auth'; | ||
import BulkLoad, { type Options as BulkLoadOptions, type Callback as BulkLoadCallback } from './bulk-load'; | ||
@@ -173,2 +174,12 @@ import Debug from './debug'; | ||
} | ||
/** Structure that defines the options that are necessary to authenticate the Tedious.JS instance with an `@azure/identity` token credential. */ | ||
interface TokenCredentialAuthentication { | ||
/** Unique designator for the type of authentication to be used. */ | ||
type: 'token-credential'; | ||
/** Set of configurations that are required or allowed with this authentication type. */ | ||
options: { | ||
/** Credential object used to authenticate to the resource. */ | ||
credential: TokenCredential; | ||
}; | ||
} | ||
interface NtlmAuthentication { | ||
@@ -206,3 +217,3 @@ type: 'ntlm'; | ||
} | ||
export type ConnectionAuthentication = DefaultAuthentication | NtlmAuthentication | AzureActiveDirectoryPasswordAuthentication | AzureActiveDirectoryMsiAppServiceAuthentication | AzureActiveDirectoryMsiVmAuthentication | AzureActiveDirectoryAccessTokenAuthentication | AzureActiveDirectoryServicePrincipalSecret | AzureActiveDirectoryDefaultAuthentication; | ||
export type ConnectionAuthentication = DefaultAuthentication | NtlmAuthentication | TokenCredentialAuthentication | AzureActiveDirectoryPasswordAuthentication | AzureActiveDirectoryMsiAppServiceAuthentication | AzureActiveDirectoryMsiVmAuthentication | AzureActiveDirectoryAccessTokenAuthentication | AzureActiveDirectoryServicePrincipalSecret | AzureActiveDirectoryDefaultAuthentication; | ||
interface InternalConnectionConfig { | ||
@@ -289,3 +300,3 @@ server: string; | ||
} | ||
type Authentication = DefaultAuthentication | NtlmAuthentication | AzureActiveDirectoryPasswordAuthentication | AzureActiveDirectoryMsiAppServiceAuthentication | AzureActiveDirectoryMsiVmAuthentication | AzureActiveDirectoryAccessTokenAuthentication | AzureActiveDirectoryServicePrincipalSecret | AzureActiveDirectoryDefaultAuthentication; | ||
type Authentication = DefaultAuthentication | NtlmAuthentication | TokenCredentialAuthentication | AzureActiveDirectoryPasswordAuthentication | AzureActiveDirectoryMsiAppServiceAuthentication | AzureActiveDirectoryMsiVmAuthentication | AzureActiveDirectoryAccessTokenAuthentication | AzureActiveDirectoryServicePrincipalSecret | AzureActiveDirectoryDefaultAuthentication; | ||
type AuthenticationType = Authentication['type']; | ||
@@ -346,2 +357,3 @@ export interface ConnectionConfiguration { | ||
* * `ntlm` :[[NtlmAuthentication]] | ||
* * `token-credential`: [[CredentialChainAuthentication.options]] | ||
* * `azure-active-directory-password` : [[AzureActiveDirectoryPasswordAuthentication.options]] | ||
@@ -348,0 +360,0 @@ * * `azure-active-directory-access-token` : [[AzureActiveDirectoryAccessTokenAuthentication.options]] |
@@ -30,3 +30,3 @@ { | ||
"license": "MIT", | ||
"version": "18.2.4", | ||
"version": "18.3.0", | ||
"main": "./lib/tedious.js", | ||
@@ -45,2 +45,3 @@ "types": "./lib/tedious.d.ts", | ||
"dependencies": { | ||
"@azure/core-auth": "^1.7.2", | ||
"@azure/identity": "^4.2.1", | ||
@@ -47,0 +48,0 @@ "@azure/keyvault-keys": "^4.4.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3431723
39499
10
+ Added@azure/core-auth@^1.7.2