@azure/identity-broker 1.2.1-alpha.20250714.3 → 1.2.1-alpha.20250722.3
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 +11 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -72,6 +72,17 @@ const credential = new InteractiveBrowserCredential({
|
|
|
72
72
|
|
|
73
73
|
After calling `useIdentityPlugin`, the native broker plugin is registered to the `@azure/identity` package and will be available on the `InteractiveBrowserCredential` that supports WAM broker authentication. This credential has `brokerOptions` in the constructor options.
|
|
74
74
|
|
|
75
|
+
**Notes**: As of `@azure/identity` version 4.11.0-beta.1, `DefaultAzureCredential` provides support to sign-in via the Windows Web Account Manager. Enable native broker in your program as follows:
|
|
76
|
+
|
|
77
|
+
```ts snippet:using_plugins_dac
|
|
78
|
+
import { useIdentityPlugin, DefaultAzureCredential } from "@azure/identity";
|
|
79
|
+
import { nativeBrokerPlugin } from "@azure/identity-broker";
|
|
80
|
+
|
|
81
|
+
useIdentityPlugin(nativeBrokerPlugin);
|
|
82
|
+
|
|
83
|
+
const credential = new DefaultAzureCredential();
|
|
84
|
+
```
|
|
85
|
+
|
|
75
86
|
## Examples
|
|
76
87
|
|
|
77
88
|
Once the plugin is registered, you can enable WAM broker authentication by passing `brokerOptions` with an `enabled` property set to `true` to a credential constructor. In the following example, we use the `InteractiveBrowserCredential`.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.52.8"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.52.8"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/identity-broker",
|
|
3
|
-
"version": "1.2.1-alpha.
|
|
3
|
+
"version": "1.2.1-alpha.20250722.3",
|
|
4
4
|
"sdk-type": "client",
|
|
5
5
|
"description": "A native plugin for Azure Identity credentials to enable broker authentication such as WAM",
|
|
6
6
|
"main": "./dist/commonjs/index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"commonjs"
|
|
93
93
|
],
|
|
94
94
|
"selfLink": false,
|
|
95
|
-
"project": "
|
|
95
|
+
"project": "../../../tsconfig.src.build.json"
|
|
96
96
|
},
|
|
97
97
|
"exports": {
|
|
98
98
|
"./package.json": "./package.json",
|