@azure/identity 4.3.0-beta.1 → 4.3.0-beta.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.
- package/README.md +1 -1
- package/dist/index.js +551 -568
- 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/authorizationCodeCredential.js +5 -7
- package/dist-esm/src/credentials/authorizationCodeCredential.js.map +1 -1
- package/dist-esm/src/credentials/deviceCodeCredential.js +1 -1
- package/dist-esm/src/credentials/deviceCodeCredential.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js +41 -18
- package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js.map +1 -1
- package/dist-esm/src/credentials/usernamePasswordCredential.js +5 -7
- package/dist-esm/src/credentials/usernamePasswordCredential.js.map +1 -1
- package/dist-esm/src/msal/nodeFlows/msalClient.js +38 -0
- package/dist-esm/src/msal/nodeFlows/msalClient.js.map +1 -1
- package/package.json +7 -7
- package/types/identity.d.ts +5 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/identity",
|
|
3
3
|
"sdk-type": "client",
|
|
4
|
-
"version": "4.3.0-beta.
|
|
4
|
+
"version": "4.3.0-beta.2",
|
|
5
5
|
"description": "Provides credential implementations for Azure SDK libraries that can authenticate with Microsoft Entra ID",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist-esm/src/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"scripts": {
|
|
49
49
|
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
|
|
50
50
|
"build:samples": "echo Obsolete.",
|
|
51
|
-
"build:test": "
|
|
51
|
+
"build:test": "echo skipped. actual commands inlined in browser test scripts",
|
|
52
52
|
"build": "npm run clean && npm run extract-api && tsc -p . && dev-tool run bundle",
|
|
53
53
|
"clean": "rimraf --glob dist dist-* types *.tgz *.log",
|
|
54
54
|
"execute:samples": "dev-tool samples run samples-dev",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
|
|
63
63
|
"lint": "eslint package.json api-extractor.json src test --ext .ts",
|
|
64
64
|
"pack": "npm pack 2>&1",
|
|
65
|
-
"test:browser": "npm run clean &&
|
|
66
|
-
"test:node": "npm run clean && npm run
|
|
65
|
+
"test:browser": "npm run clean && tsc -p . && dev-tool run bundle && npm run unit-test:browser && npm run integration-test:browser",
|
|
66
|
+
"test:node": "npm run clean && npm run unit-test:node && npm run integration-test:node",
|
|
67
67
|
"test": "npm run clean && npm run build:test && npm run unit-test && npm run integration-test",
|
|
68
68
|
"unit-test:browser": "dev-tool run test:browser",
|
|
69
|
-
"unit-test:node": "dev-tool run test:node-ts-input -- --timeout 300000 --exclude 'test/**/browser/**/*.spec.ts' 'test/**/**/*.spec.ts'",
|
|
69
|
+
"unit-test:node": "dev-tool run test:node-ts-input -- --timeout 300000 --exclude 'test/**/browser/**/*.spec.ts' --exclude 'test/integration/**/*.spec.ts' 'test/**/**/*.spec.ts'",
|
|
70
70
|
"unit-test:node:no-timeouts": "dev-tool run test:node-ts-input -- --timeout Infinite --exclude 'test/**/browser/**/*.spec.ts' 'test/**/**/*.spec.ts'",
|
|
71
71
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
|
|
72
72
|
},
|
|
@@ -110,13 +110,13 @@
|
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"@azure/abort-controller": "^1.0.0",
|
|
112
112
|
"@azure/core-auth": "^1.5.0",
|
|
113
|
-
"@azure/core-client": "^1.
|
|
113
|
+
"@azure/core-client": "^1.9.2",
|
|
114
114
|
"@azure/core-rest-pipeline": "^1.1.0",
|
|
115
115
|
"@azure/core-tracing": "^1.0.0",
|
|
116
116
|
"@azure/core-util": "^1.3.0",
|
|
117
117
|
"@azure/logger": "^1.0.0",
|
|
118
118
|
"@azure/msal-browser": "^3.11.1",
|
|
119
|
-
"@azure/msal-node": "^2.
|
|
119
|
+
"@azure/msal-node": "^2.9.2",
|
|
120
120
|
"events": "^3.0.0",
|
|
121
121
|
"jws": "^4.0.0",
|
|
122
122
|
"open": "^8.0.0",
|
package/types/identity.d.ts
CHANGED
|
@@ -135,12 +135,13 @@ export declare interface AuthorityValidationOptions {
|
|
|
135
135
|
* https://learn.microsoft.com/entra/identity-platform/v2-oauth2-auth-code-flow
|
|
136
136
|
*/
|
|
137
137
|
export declare class AuthorizationCodeCredential implements TokenCredential {
|
|
138
|
-
private
|
|
138
|
+
private msalClient;
|
|
139
139
|
private disableAutomaticAuthentication?;
|
|
140
140
|
private authorizationCode;
|
|
141
141
|
private redirectUri;
|
|
142
142
|
private tenantId?;
|
|
143
143
|
private additionallyAllowedTenantIds;
|
|
144
|
+
private clientSecret?;
|
|
144
145
|
/**
|
|
145
146
|
* Creates an instance of AuthorizationCodeCredential with the details needed
|
|
146
147
|
* to request an access token using an authentication that was obtained
|
|
@@ -1631,7 +1632,9 @@ export declare function useIdentityPlugin(plugin: IdentityPlugin): void;
|
|
|
1631
1632
|
export declare class UsernamePasswordCredential implements TokenCredential {
|
|
1632
1633
|
private tenantId;
|
|
1633
1634
|
private additionallyAllowedTenantIds;
|
|
1634
|
-
private
|
|
1635
|
+
private msalClient;
|
|
1636
|
+
private username;
|
|
1637
|
+
private password;
|
|
1635
1638
|
/**
|
|
1636
1639
|
* Creates an instance of the UsernamePasswordCredential with the details
|
|
1637
1640
|
* needed to authenticate against Microsoft Entra ID with a username
|