diff --git a/dist/lib/credentials/applicationTokenCredentials.js b/dist/lib/credentials/applicationTokenCredentials.js index 4eb19cf..a8bc9c9 100644 --- a/dist/lib/credentials/applicationTokenCredentials.js +++ b/dist/lib/credentials/applicationTokenCredentials.js @@ -13,8 +13,8 @@ class ApplicationTokenCredentials extends tokenCredentialsBase_1.TokenCredential * @param {string} clientId The active directory application client id. * @param {string} domain The domain or tenant id containing this application. * @param {string} secret The authentication secret for the application. - * @param {string} [tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * @param {AzureEnvironment} [environment] The azure environment to authenticate with. * @param {object} [tokenCache] The token cache. Default value is the MemoryCache object from adal. */ diff --git a/dist/lib/credentials/deviceTokenCredentials.js b/dist/lib/credentials/deviceTokenCredentials.js index b2e794b..e436d76 100644 --- a/dist/lib/credentials/deviceTokenCredentials.js +++ b/dist/lib/credentials/deviceTokenCredentials.js @@ -16,8 +16,8 @@ class DeviceTokenCredentials extends tokenCredentialsBase_1.TokenCredentialsBase * @param {string} [clientId] The active directory application client id. * @param {string} [domain] The domain or tenant id containing this application. Default value is "common" * @param {string} [username] The user name for account in the form: "user@example.com". - * @param {string} [tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided and its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * See {@link https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-dotnet/ Active Directory Quickstart for .Net} * for an example. * @param {AzureEnvironment} [environment] The azure environment to authenticate with. Default environment is "Azure" popularly known as "Public Azure Cloud". diff --git a/dist/lib/credentials/userTokenCredentials.js b/dist/lib/credentials/userTokenCredentials.js index 4cd6725..1f4d390 100644 --- a/dist/lib/credentials/userTokenCredentials.js +++ b/dist/lib/credentials/userTokenCredentials.js @@ -22,8 +22,8 @@ class UserTokenCredentials extends tokenCredentialsBase_1.TokenCredentialsBase { * @param {string} domain The domain or tenant id containing this application. * @param {string} username The user name for the Organization Id account. * @param {string} password The password for the Organization Id account. - * @param {string} [tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * @param {AzureEnvironment} [environment] The azure environment to authenticate with. * @param {object} [tokenCache] The token cache. Default value is the MemoryCache object from adal. */ diff --git a/dist/lib/login.js b/dist/lib/login.js index a2a5c87..8b03606 100644 --- a/dist/lib/login.js +++ b/dist/lib/login.js @@ -46,8 +46,8 @@ if (process.env["AZURE_ADAL_LOGGING_ENABLED"]) { * @param {string} [options.clientId] The active directory application client id. * See {@link https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-dotnet/ Active Directory Quickstart for .Net} * for an example. - * @param {string} [options.tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided and its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [options.tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * @param {string} [options.domain] The domain or tenant id containing this application. Default value "common". * @param {AzureEnvironment} [options.environment] The azure environment to authenticate with. * @param {object} [options.tokenCache] The token cache. Default value is the MemoryCache object from adal. diff --git a/dist/lib/login.js.map b/dist/lib/login.js.map index 138cf67..f2a0497 100644 --- a/dist/lib/login.js.map +++ b/dist/lib/login.js.map @@ -1 +1 @@ -{"version":3,"file":"login.js","sourceRoot":"","sources":["../../lib/login.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;;;;;;;;;AAE/F,MAAM,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAClC,yBAAyB;AACzB,qCAAqC;AACrC,yDAAqD;AAErD,2FAAwF;AACxF,iFAA8E;AAC9E,6EAA0E;AAC1E,wDAAoE;AACpE,kFAA8H;AAC9H,2EAA0F;AAE1F;IACE,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC;IACzB,GAAG,CAAC,iBAAiB,CACnB;QACE,KAAK,EAAE,GAAG,CAAC,aAAa,CAAC,OAAO;QAChC,GAAG,EAAE,UAAU,KAAU,EAAE,OAAY,EAAE,KAAU;YACjD,KAAK,CAAC;YACN,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACtB,IAAI,KAAK,EAAE;gBACT,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;aACtB;QACH,CAAC;KACF,CAAC,CAAC;AACP,CAAC;AAED,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,EAAE;IAC7C,aAAa,EAAE,CAAC;CACjB;AAwGD;;;;;;;;;;;;;;;;;GAiBG;AACH,8CAA2D,QAAgB,EAAE,QAAgB,EAAE,OAA0C;;QACvI,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;YACrB,OAAO,CAAC,QAAQ,GAAG,6BAAa,CAAC,sBAAsB,CAAC;SACzD;QACD,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YACnB,OAAO,CAAC,MAAM,GAAG,6BAAa,CAAC,iBAAiB,CAAC;SAClD;QACD,IAAI,CAAC,OAAO,CA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YAC7F,IAAI,GAAG,EAAE;gBACP,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;aAChB;YACD,OAAO,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;KACJ;AACH,CAAC;AAhBD,0BAgBC"} \ No newline at end of file +{"version":3,"file":"login.js","sourceRoot":"","sources":["../../lib/login.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;;;;;;;;;AAE/F,MAAM,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAClC,yBAAyB;AACzB,qCAAqC;AACrC,yDAAqD;AAErD,2FAAwF;AACxF,iFAA8E;AAC9E,6EAA0E;AAC1E,wDAAoE;AACpE,kFAA8H;AAC9H,2EAA0F;AAE1F;IACE,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC;IACzB,GAAG,CAAC,iBAAiB,CACnB;QACE,KAAK,EAAE,GAAG,CAAC,aAAa,CAAC,OAAO;QAChC,GAAG,EAAE,UAAU,KAAU,EAAE,OAAY,EAAE,KAAU;YACjD,KAAK,CAAC;YACN,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACtB,IAAI,KAAK,EAAE;gBACT,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;aACtB;QACH,CAAC;KACF,CAAC,CAAC;AACP,CAAC;AAED,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,EAAE;IAC7C,aAAa,EAAE,CAAC;CACjB;AAuGD;;;;;;;;;;;;;;;;;GAiBG;AACH,8CAA2D,QAAgB,EAAE,QAAgB,EAAE,OAA0C;;QACvI,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;YACrB,OAAO,CAAC,QAAQ,GAAG,6BAAa,CAAC,sBAAsB,CAAC;SACzD;QACD,IAAI,CAAC,OAAO,CAAC,MAAM,E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,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,GAAU,EAAE,QAA0B,EAAE,EAAE;YAC7F,IAAI,GAAG,EAAE;gBACP,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;aAChB;YACD,OAAO,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;KACJ;AACH,CAAC;AAhBD,0BAgBC"} \ No newline at end of file diff --git a/lib/credentials/applicationTokenCredentials.ts b/lib/credentials/applicationTokenCredentials.ts index d1f840c..d6bee5e 100644 --- a/lib/credentials/applicationTokenCredentials.ts +++ b/lib/credentials/applicationTokenCredentials.ts @@ -16,8 +16,8 @@ export class ApplicationTokenCredentials extends TokenCredentialsBase { * @param {string} clientId The active directory application client id. * @param {string} domain The domain or tenant id containing this application. * @param {string} secret The authentication secret for the application. - * @param {string} [tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * @param {AzureEnvironment} [environment] The azure environment to authenticate with. * @param {object} [tokenCache] The token cache. Default value is the MemoryCache object from adal. */ diff --git a/lib/credentials/deviceTokenCredentials.ts b/lib/credentials/deviceTokenCredentials.ts index 5e27c2b..a721344 100644 --- a/lib/credentials/deviceTokenCredentials.ts +++ b/lib/credentials/deviceTokenCredentials.ts @@ -20,8 +20,8 @@ export class DeviceTokenCredentials extends TokenCredentialsBase { * @param {string} [clientId] The active directory application client id. * @param {string} [domain] The domain or tenant id containing this application. Default value is "common" * @param {string} [username] The user name for account in the form: "user@example.com". - * @param {string} [tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided and its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * See {@link https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-dotnet/ Active Directory Quickstart for .Net} * for an example. * @param {AzureEnvironment} [environment] The azure environment to authenticate with. Default environment is "Azure" popularly known as "Public Azure Cloud". diff --git a/lib/credentials/userTokenCredentials.ts b/lib/credentials/userTokenCredentials.ts index 2a375c5..2315b2a 100644 --- a/lib/credentials/userTokenCredentials.ts +++ b/lib/credentials/userTokenCredentials.ts @@ -20,8 +20,8 @@ export class UserTokenCredentials extends TokenCredentialsBase { * @param {string} domain The domain or tenant id containing this application. * @param {string} username The user name for the Organization Id account. * @param {string} password The password for the Organization Id account. - * @param {string} [tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * @param {AzureEnvironment} [environment] The azure environment to authenticate with. * @param {object} [tokenCache] The token cache. Default value is the MemoryCache object from adal. */ diff --git a/lib/login.ts b/lib/login.ts index 86229e0..b5d1f26 100644 --- a/lib/login.ts +++ b/lib/login.ts @@ -37,9 +37,8 @@ if (process.env["AZURE_ADAL_LOGGING_ENABLED"]) { */ export interface AzureTokenCredentialsOptions { /** - * @property {TokenAudience} [tokenAudience] - The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided and its value should not be the default "common" tenant. - * It must be a string (preferrably in a guid format). + * @property {TokenAudience} [tokenAudience] - The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). */ tokenAudience?: TokenAudience; /** @@ -144,8 +143,8 @@ export interface LoginWithMSIOptions { * @param {string} [options.clientId] The active directory application client id. * See {@link https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-dotnet/ Active Directory Quickstart for .Net} * for an example. - * @param {string} [options.tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided and its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [options.tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * @param {string} [options.domain] The domain or tenant id containing this application. Default value "common". * @param {AzureEnvironment} [options.environment] The azure environment to authenticate with. * @param {object} [options.tokenCache] The token cache. Default value is the MemoryCache object from adal. @@ -647,8 +646,8 @@ export function withServicePrincipalSecret(clientId: string, secret: string, dom * @param {string} [options.clientId] The active directory application client id. * See {@link https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-dotnet/ Active Directory Quickstart for .Net} * for an example. - * @param {string} [options.tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided and its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [options.tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * @param {string} [options.domain] The domain or tenant id containing this application. Default value "common". * @param {AzureEnvironment} [options.environment] The azure environment to authenticate with. * @param {object} [options.tokenCache] The token cache. Default value is the MemoryCache object from adal. diff --git a/typings/lib/credentials/applicationTokenCredentials.d.ts b/typings/lib/credentials/applicationTokenCredentials.d.ts index 436c6f5..b54f2c7 100644 --- a/typings/lib/credentials/applicationTokenCredentials.d.ts +++ b/typings/lib/credentials/applicationTokenCredentials.d.ts @@ -11,8 +11,8 @@ export declare class ApplicationTokenCredentials extends TokenCredentialsBase { * @param {string} clientId The active directory application client id. * @param {string} domain The domain or tenant id containing this application. * @param {string} secret The authentication secret for the application. - * @param {string} [tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * @param {AzureEnvironment} [environment] The azure environment to authenticate with. * @param {object} [tokenCache] The token cache. Default value is the MemoryCache object from adal. */ diff --git a/typings/lib/credentials/deviceTokenCredentials.d.ts b/typings/lib/credentials/deviceTokenCredentials.d.ts index 5400391..22168d8 100644 --- a/typings/lib/credentials/deviceTokenCredentials.d.ts +++ b/typings/lib/credentials/deviceTokenCredentials.d.ts @@ -14,8 +14,8 @@ export declare class DeviceTokenCredentials extends TokenCredentialsBase { * @param {string} [clientId] The active directory application client id. * @param {string} [domain] The domain or tenant id containing this application. Default value is "common" * @param {string} [username] The user name for account in the form: "user@example.com". - * @param {string} [tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided and its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * See {@link https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-dotnet/ Active Directory Quickstart for .Net} * for an example. * @param {AzureEnvironment} [environment] The azure environment to authenticate with. Default environment is "Azure" popularly known as "Public Azure Cloud". diff --git a/typings/lib/credentials/userTokenCredentials.d.ts b/typings/lib/credentials/userTokenCredentials.d.ts index 3b79305..83f5bf0 100644 --- a/typings/lib/credentials/userTokenCredentials.d.ts +++ b/typings/lib/credentials/userTokenCredentials.d.ts @@ -14,8 +14,8 @@ export declare class UserTokenCredentials extends TokenCredentialsBase { * @param {string} domain The domain or tenant id containing this application. * @param {string} username The user name for the Organization Id account. * @param {string} password The password for the Organization Id account. - * @param {string} [tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * @param {AzureEnvironment} [environment] The azure environment to authenticate with. * @param {object} [tokenCache] The token cache. Default value is the MemoryCache object from adal. */ diff --git a/typings/lib/login.d.ts b/typings/lib/login.d.ts index 93070f1..8ab47d4 100644 --- a/typings/lib/login.d.ts +++ b/typings/lib/login.d.ts @@ -11,9 +11,8 @@ import { MSITokenResponse } from "./credentials/msiTokenCredentials"; */ export interface AzureTokenCredentialsOptions { /** - * @property {TokenAudience} [tokenAudience] - The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided and its value should not be the default "common" tenant. - * It must be a string (preferrably in a guid format). + * @property {TokenAudience} [tokenAudience] - The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). */ tokenAudience?: TokenAudience; /** @@ -112,8 +111,8 @@ export interface LoginWithMSIOptions { * @param {string} [options.clientId] The active directory application client id. * See {@link https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-dotnet/ Active Directory Quickstart for .Net} * for an example. - * @param {string} [options.tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided and its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [options.tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * @param {string} [options.domain] The domain or tenant id containing this application. Default value "common". * @param {AzureEnvironment} [options.environment] The azure environment to authenticate with. * @param {object} [options.tokenCache] The token cache. Default value is the MemoryCache object from adal. @@ -303,8 +302,8 @@ export declare function withServicePrincipalSecret(clientId: string, secret: str * @param {string} [options.clientId] The active directory application client id. * See {@link https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-dotnet/ Active Directory Quickstart for .Net} * for an example. - * @param {string} [options.tokenAudience] The audience for which the token is requested. Valid value is "graph". If tokenAudience is provided - * then domain should also be provided and its value should not be the default "common" tenant. It must be a string (preferrably in a guid format). + * @param {string} [options.tokenAudience] The audience for which the token is requested. Valid values are 'graph' or any other resource like 'https://vault.azure.com/'. + * If tokenAudience is 'graph' then domain should also be provided and its value should not be the default 'common' tenant. It must be a string (preferrably in a guid format). * @param {string} [options.domain] The domain or tenant id containing this application. Default value "common". * @param {AzureEnvironment} [options.environment] The azure environment to authenticate with. * @param {object} [options.tokenCache] The token cache. Default value is the MemoryCache object from adal.