@azure/identity 3.1.3-alpha.20230131.2 → 3.2.0-alpha.20230213.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @azure/identity might be problematic. Click here for more details.
- package/README.md +10 -1
- package/dist/index.js +237 -106
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +1 -1
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/credentials/authorityValidationOptions.js +4 -0
- package/dist-esm/src/credentials/authorityValidationOptions.js.map +1 -0
- package/dist-esm/src/credentials/authorizationCodeCredentialOptions.js.map +1 -1
- package/dist-esm/src/credentials/clientAssertionCredentialOptions.js.map +1 -1
- package/dist-esm/src/credentials/clientCertificateCredentialOptions.js.map +1 -1
- package/dist-esm/src/credentials/clientSecretCredentialOptions.js.map +1 -1
- package/dist-esm/src/credentials/defaultAzureCredential.js +2 -0
- package/dist-esm/src/credentials/defaultAzureCredential.js.map +1 -1
- package/dist-esm/src/credentials/defaultAzureCredentialOptions.js.map +1 -1
- package/dist-esm/src/credentials/environmentCredentialOptions.js.map +1 -1
- package/dist-esm/src/credentials/interactiveBrowserCredentialOptions.js.map +1 -1
- package/dist-esm/src/credentials/interactiveCredentialOptions.js.map +1 -1
- package/dist-esm/src/credentials/onBehalfOfCredentialOptions.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/msal/browserFlows/msalBrowserCommon.js +1 -1
- package/dist-esm/src/msal/browserFlows/msalBrowserCommon.js.map +1 -1
- package/dist-esm/src/msal/flows.js.map +1 -1
- package/dist-esm/src/msal/nodeFlows/msalNodeCommon.js +1 -1
- package/dist-esm/src/msal/nodeFlows/msalNodeCommon.js.map +1 -1
- package/dist-esm/src/msal/utils.js +2 -2
- package/dist-esm/src/msal/utils.js.map +1 -1
- package/package.json +4 -4
- package/types/identity.d.ts +24 -9
package/types/identity.d.ts
CHANGED
|
@@ -110,6 +110,18 @@ export declare interface AuthenticationRequiredErrorOptions {
|
|
|
110
110
|
message?: string;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Provides options to configure how the Identity library
|
|
115
|
+
* does authority validation during authentication requests
|
|
116
|
+
* to Azure Active Directory.
|
|
117
|
+
*/
|
|
118
|
+
export declare interface AuthorityValidationOptions {
|
|
119
|
+
/**
|
|
120
|
+
* Setting this flag to `true` disables both authority validation and instance discovery.
|
|
121
|
+
*/
|
|
122
|
+
disableInstanceDiscovery?: boolean;
|
|
123
|
+
}
|
|
124
|
+
|
|
113
125
|
/**
|
|
114
126
|
* Enables authentication to Azure Active Directory using an authorization code
|
|
115
127
|
* that was obtained through the authorization code flow, described in more detail
|
|
@@ -183,7 +195,7 @@ export declare class AuthorizationCodeCredential implements TokenCredential {
|
|
|
183
195
|
/**
|
|
184
196
|
* Options for the {@link AuthorizationCodeCredential}
|
|
185
197
|
*/
|
|
186
|
-
export declare interface AuthorizationCodeCredentialOptions extends MultiTenantTokenCredentialOptions {
|
|
198
|
+
export declare interface AuthorizationCodeCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
|
|
187
199
|
}
|
|
188
200
|
|
|
189
201
|
/**
|
|
@@ -372,7 +384,7 @@ export declare class ClientAssertionCredential implements TokenCredential {
|
|
|
372
384
|
/**
|
|
373
385
|
* Options for the {@link ClientAssertionCredential}
|
|
374
386
|
*/
|
|
375
|
-
export declare interface ClientAssertionCredentialOptions extends MultiTenantTokenCredentialOptions {
|
|
387
|
+
export declare interface ClientAssertionCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
|
|
376
388
|
}
|
|
377
389
|
|
|
378
390
|
/**
|
|
@@ -433,7 +445,7 @@ export declare class ClientCertificateCredential implements TokenCredential {
|
|
|
433
445
|
/**
|
|
434
446
|
* Optional parameters for the {@link ClientCertificateCredential} class.
|
|
435
447
|
*/
|
|
436
|
-
export declare interface ClientCertificateCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions {
|
|
448
|
+
export declare interface ClientCertificateCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
|
437
449
|
/**
|
|
438
450
|
* Option to include x5c header for SubjectName and Issuer name authorization.
|
|
439
451
|
* Set this option to send base64 encoded public certificate in the client assertion header as an x5c claim
|
|
@@ -511,7 +523,7 @@ export declare class ClientSecretCredential implements TokenCredential {
|
|
|
511
523
|
/**
|
|
512
524
|
* Optional parameters for the {@link ClientSecretCredential} class.
|
|
513
525
|
*/
|
|
514
|
-
export declare interface ClientSecretCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions {
|
|
526
|
+
export declare interface ClientSecretCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
|
515
527
|
}
|
|
516
528
|
|
|
517
529
|
/**
|
|
@@ -580,6 +592,7 @@ export declare class DefaultAzureCredential extends ChainedTokenCredential {
|
|
|
580
592
|
*
|
|
581
593
|
* - {@link EnvironmentCredential}
|
|
582
594
|
* - {@link ManagedIdentityCredential}
|
|
595
|
+
* - {@link AzureDeveloperCliCredential}
|
|
583
596
|
* - {@link AzureCliCredential}
|
|
584
597
|
* - {@link AzurePowerShellCredential}
|
|
585
598
|
*
|
|
@@ -599,6 +612,7 @@ export declare class DefaultAzureCredential extends ChainedTokenCredential {
|
|
|
599
612
|
*
|
|
600
613
|
* - {@link EnvironmentCredential}
|
|
601
614
|
* - {@link ManagedIdentityCredential}
|
|
615
|
+
* - {@link AzureDeveloperCliCredential}
|
|
602
616
|
* - {@link AzureCliCredential}
|
|
603
617
|
* - {@link AzurePowerShellCredential}
|
|
604
618
|
*
|
|
@@ -618,6 +632,7 @@ export declare class DefaultAzureCredential extends ChainedTokenCredential {
|
|
|
618
632
|
*
|
|
619
633
|
* - {@link EnvironmentCredential}
|
|
620
634
|
* - {@link ManagedIdentityCredential}
|
|
635
|
+
* - {@link AzureDeveloperCliCredential}
|
|
621
636
|
* - {@link AzureCliCredential}
|
|
622
637
|
* - {@link AzurePowerShellCredential}
|
|
623
638
|
*
|
|
@@ -644,7 +659,7 @@ export declare interface DefaultAzureCredentialClientIdOptions extends DefaultAz
|
|
|
644
659
|
/**
|
|
645
660
|
* Provides options to configure the {@link DefaultAzureCredential} class.
|
|
646
661
|
*/
|
|
647
|
-
export declare interface DefaultAzureCredentialOptions extends MultiTenantTokenCredentialOptions {
|
|
662
|
+
export declare interface DefaultAzureCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
|
|
648
663
|
/**
|
|
649
664
|
* Optionally pass in a Tenant ID to be used as part of the credential.
|
|
650
665
|
* By default it may use a generic tenant ID depending on the underlying credential.
|
|
@@ -837,7 +852,7 @@ export declare class EnvironmentCredential implements TokenCredential {
|
|
|
837
852
|
* Enables authentication to Azure Active Directory depending on the available environment variables.
|
|
838
853
|
* Defines options for the EnvironmentCredential class.
|
|
839
854
|
*/
|
|
840
|
-
export declare interface EnvironmentCredentialOptions extends MultiTenantTokenCredentialOptions {
|
|
855
|
+
export declare interface EnvironmentCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
|
|
841
856
|
}
|
|
842
857
|
|
|
843
858
|
/**
|
|
@@ -974,7 +989,7 @@ export declare interface InteractiveBrowserCredentialInBrowserOptions extends In
|
|
|
974
989
|
/**
|
|
975
990
|
* Defines the common options for the InteractiveBrowserCredential class.
|
|
976
991
|
*/
|
|
977
|
-
export declare interface InteractiveBrowserCredentialNodeOptions extends InteractiveCredentialOptions, CredentialPersistenceOptions {
|
|
992
|
+
export declare interface InteractiveBrowserCredentialNodeOptions extends InteractiveCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
|
978
993
|
/**
|
|
979
994
|
* Gets the redirect URI of the application. This should be same as the value
|
|
980
995
|
* in the application registration portal. Defaults to `window.location.href`.
|
|
@@ -998,7 +1013,7 @@ export declare interface InteractiveBrowserCredentialNodeOptions extends Interac
|
|
|
998
1013
|
/**
|
|
999
1014
|
* Common constructor options for the Identity credentials that requires user interaction.
|
|
1000
1015
|
*/
|
|
1001
|
-
export declare interface InteractiveCredentialOptions extends MultiTenantTokenCredentialOptions {
|
|
1016
|
+
export declare interface InteractiveCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
|
|
1002
1017
|
/**
|
|
1003
1018
|
* Result of a previous authentication that can be used to retrieve the cached credentials of each individual account.
|
|
1004
1019
|
* This is necessary to provide in case the application wants to work with more than one account per
|
|
@@ -1208,7 +1223,7 @@ export declare interface OnBehalfOfCredentialCertificateOptions {
|
|
|
1208
1223
|
/**
|
|
1209
1224
|
* Optional parameters for the {@link OnBehalfOfCredential} class.
|
|
1210
1225
|
*/
|
|
1211
|
-
export declare type OnBehalfOfCredentialOptions = (OnBehalfOfCredentialSecretOptions | OnBehalfOfCredentialCertificateOptions) & MultiTenantTokenCredentialOptions & CredentialPersistenceOptions;
|
|
1226
|
+
export declare type OnBehalfOfCredentialOptions = (OnBehalfOfCredentialSecretOptions | OnBehalfOfCredentialCertificateOptions) & MultiTenantTokenCredentialOptions & CredentialPersistenceOptions & AuthorityValidationOptions;
|
|
1212
1227
|
|
|
1213
1228
|
/**
|
|
1214
1229
|
* Defines the parameters to authenticate the {@link OnBehalfOfCredential} with a secret.
|