You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`clientId`| App ID of your application. Can be found in your [portal registration](../README.md#prerequisites).| UUID/GUID | None. This parameter is required in order for MSAL to perform any actions. |
74
-
|`authority`| URI of the tenant to authenticate and authorize with. Usually takes the form of `https://{uri}/{tenantid}` (see [Authority](../../msal-common/docs/authority.md))| String in URI format with tenant - `https://{uri}/{tenantid}`|`https://login.microsoftonline.com/common`|
75
-
|`knownAuthorities`| An array of URIs that are known to be valid. Used in B2C scenarios.| Array of strings in URI format | Empty array `[]`|
76
-
|`cloudDiscoveryMetadata`| A string containing the cloud discovery response. Used in AAD scenarios. See [Performance](../../msal-common/docs/performance.md) for more info| string | Empty string `""`|
77
-
|`authorityMetadata`| A string containing the .well-known/openid-configuration endpoint response. See [Performance](../../msal-common/docs/performance.md) for more info| string | Empty string `""`|
78
-
|`clientCapabilities`| Array of capabilities to be added to all network requests as part of the `xms_cc` claims request (see: [Client capability in MSAL](../../msal-common/docs/client-capability.md))| Array of strings |[]|
79
-
|`azureCloudOptions`| A defined set of azure cloud options for developers to default to their specific cloud authorities, for specific clouds supported please refer to the [AzureCloudInstance](aka.ms/msaljs/azure_cloud_instance)|[AzureCloudOptions](https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#azurecloudoptions)|[AzureCloudInstance.None](msaljs/azure_cloud_instance)|
|`clientId`| App ID of your application. Can be found in your [portal registration](../README.md#prerequisites). | UUID/GUID | None. This parameter is required in order for MSAL to perform any actions. |
72
+
|`authority`| URI of the tenant to authenticate and authorize with. Usually takes the form of `https://{uri}/{tenantid}` (see [Authority](../../msal-common/docs/authority.md)) | String in URI format with tenant - `https://{uri}/{tenantid}`|`https://login.microsoftonline.com/common`|
73
+
|`knownAuthorities`| An array of URIs that are known to be valid. Used in B2C scenarios. | Array of strings in URI format | Empty array `[]`|
74
+
|`cloudDiscoveryMetadata`| A string containing the cloud discovery response. Used in AAD scenarios. See [Performance](../../msal-common/docs/performance.md) for more info | string | Empty string `""`|
75
+
|`authorityMetadata`| A string containing the .well-known/openid-configuration endpoint response. See [Performance](../../msal-common/docs/performance.md) for more info | string | Empty string `""`|
76
+
|`clientCapabilities`| Array of capabilities to be added to all network requests as part of the `xms_cc` claims request (see: [Client capability in MSAL](../../msal-common/docs/client-capability.md)) | Array of strings |[]|
77
+
|`azureCloudOptions`| A defined set of azure cloud options for developers to default to their specific cloud authorities, for specific clouds supported please refer to the [AzureCloudInstance](aka.ms/msaljs/azure_cloud_instance)|[AzureCloudOptions](https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#azurecloudoptions)|[AzureCloudInstance.None](msaljs/azure_cloud_instance)|
80
78
81
79
### Cache Config Options
82
80
@@ -92,14 +90,12 @@ const msalInstance = new PublicClientApplication(msalConfig);
|`proxyUrl`| The URL of the proxy the app is running behind | string | Empty string `""`|
100
-
|`customAgentOptions`| Set of configurable options to set on a http(s) agent | Object - [NodeJS documentation on alloweable options](https://nodejs.org/docs/latest-v16.x/api/http.html#new-agentoptions)| Empty Object `{}`|
101
-
|`disableInternalRetries`| A flag that disables MSALJS's built-in retry policies, allowing the app developer to specify their own retry policy. Currently, only Managed Identity flows have a retry policy. | boolean | boolean `false`|
102
-
|`protocolMode`| Enum representing the protocol mode to use. If `"AAD"`, will function on the AAD v2 endpoints; if `"OIDC"`, will function on OIDC-compliant endpoints. | string |`"AAD"`|
|`disableInternalRetries`| A flag that disables MSALJS's built-in retry policies, allowing the app developer to specify their own retry policy. Currently, only Managed Identity flows have a retry policy. | boolean | boolean `false`|
98
+
|`protocolMode`| Enum representing the protocol mode to use. If `"AAD"`, will function on the AAD v2 endpoints; if `"OIDC"`, will function on OIDC-compliant endpoints. | string |`"AAD"`|
Copy file name to clipboardExpand all lines: lib/msal-node/docs/faq.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,11 +68,7 @@ MSAL Node supports self-service sign-up in the auth code flow. Please see our do
68
68
69
69
### Why doesn't my app function correctly when it's running behind a proxy?
70
70
71
-
Developers can provide a `proxyUrl` string in the system config options as detailed [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/configuration.md#system-config-options). Developers can also implement their own NetworkManager by instantiating an [INetworkModule](https://azuread.github.io/microsoft-authentication-library-for-js/ref/interfaces/_azure_msal_common.INetworkModule.html) and building proxy support in it.
72
-
73
-
### How do I implement a custom http(s) agent in MSAL Node?
74
-
75
-
Developers can use a custom http(s) agent by providing a `customAgentOptions` object in the system config options as detailed [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/configuration.md#system-config-options). Developers can also implement their own NetworkManager by instantiating an [INetworkModule](https://azuread.github.io/microsoft-authentication-library-for-js/ref/interfaces/_azure_msal_common.INetworkModule.html) and building custom http(s) agent support in it.
71
+
MSAL-Node's HttpClient utilizes NodeJS's native fetch API for network requests, which currently doesn't have native proxy support. Developers can implement their own NetworkManager by instantiating an [INetworkModule](https://azuread.github.io/microsoft-authentication-library-for-js/ref/interfaces/_azure_msal_common.INetworkModule.html) and building proxy support in it. A sample for this can be found [here](../../../samples/msal-node-samples/custom-INetworkModule-and-network-tracing/README.md).
Developers must now write their own custom HttpClient when proxy support is needed. We have an [existing sample](../../../samples/msal-node-samples/custom-INetworkModule-and-network-tracing/README.md) which showcases how to do this.
38
+
8
39
The `protocolMode` parameter is no longer an auth config option and is instead a system config option.
0 commit comments