@azure/identity-broker 1.0.1-alpha.20240515.1 → 1.0.1-alpha.20240516.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 +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,6 +75,7 @@ After calling `useIdentityPlugin`, the native broker plugin is registered to the
|
|
|
75
75
|
|
|
76
76
|
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`.
|
|
77
77
|
|
|
78
|
+
<!-- eslint-skip -->
|
|
78
79
|
```typescript
|
|
79
80
|
import { nativeBrokerPlugin } from "@azure/identity-broker";
|
|
80
81
|
import { useIdentityPlugin, InteractiveBrowserCredential } from "@azure/identity";
|
|
@@ -108,6 +109,7 @@ For a complete example of using an Electron app for retrieving a window handle,
|
|
|
108
109
|
|
|
109
110
|
When the `useDefaultBrokerAccount` option is set to `true`, the credential will attempt to silently use the default broker account. If using the default account fails, the credential will fall back to interactive authentication.
|
|
110
111
|
|
|
112
|
+
<!-- eslint-skip -->
|
|
111
113
|
```typescript
|
|
112
114
|
import { nativeBrokerPlugin } from "@azure/identity-broker";
|
|
113
115
|
import { useIdentityPlugin, InteractiveBrowserCredential } from "@azure/identity";
|
|
@@ -145,7 +147,7 @@ See the Azure Identity [troubleshooting guide][https://github.com/Azure/azure-sd
|
|
|
145
147
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
146
148
|
|
|
147
149
|
```typescript
|
|
148
|
-
import { setLogLevel } from
|
|
150
|
+
import { setLogLevel } from "@azure/logger";
|
|
149
151
|
|
|
150
152
|
setLogLevel("info");
|
|
151
153
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/identity-broker",
|
|
3
|
-
"version": "1.0.1-alpha.
|
|
3
|
+
"version": "1.0.1-alpha.20240516.2",
|
|
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/index.js",
|