auth0 3.6.1 → 3.7.0
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/auth/DatabaseAuthenticator.js +3 -1
- package/src/auth/OAuthAuthenticator.js +1 -0
- package/src/auth/PasswordlessAuthenticator.js +1 -0
- package/src/auth/index.js +2 -0
- package/src/management/BaseManager.js +1 -0
- package/src/management/index.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v3.7.0](https://github.com/auth0/node-auth0/tree/v3.7.0) (2023-08-29)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/auth0/node-auth0/compare/v3.6.0...v3.7.0)
|
|
6
|
+
|
|
7
|
+
**Added**
|
|
8
|
+
|
|
9
|
+
- feat: add configuration for using persistent connections [\#919](https://github.com/auth0/node-auth0/pull/919) ([alaczi](https://github.com/alaczi))
|
|
10
|
+
|
|
3
11
|
## [v3.6.1](https://github.com/auth0/node-auth0/tree/v3.6.1) (2023-08-22)
|
|
4
12
|
|
|
5
13
|
[Full Changelog](https://github.com/auth0/node-auth0/compare/v3.6.0...v3.6.1)
|
package/package.json
CHANGED
|
@@ -10,7 +10,8 @@ class DatabaseAuthenticator {
|
|
|
10
10
|
* @param {object} options Authenticator options.
|
|
11
11
|
* @param {string} options.baseUrl The auth0 account URL.
|
|
12
12
|
* @param {string} [options.clientId] Default client ID.
|
|
13
|
-
* @param
|
|
13
|
+
* @param {string} [options.proxy] Add the `superagent-proxy` dependency and specify a proxy url eg 'https://myproxy.com:1234'
|
|
14
|
+
* @param {boolean} [options.keepAlive] Keep the connection alive
|
|
14
15
|
* @param {OAuthAuthenticator} oauth OAuthAuthenticator instance.
|
|
15
16
|
*/
|
|
16
17
|
constructor(options, oauth) {
|
|
@@ -31,6 +32,7 @@ class DatabaseAuthenticator {
|
|
|
31
32
|
errorFormatter: { message: 'message', name: 'error' },
|
|
32
33
|
headers: options.headers,
|
|
33
34
|
proxy: options.proxy,
|
|
35
|
+
keepAlive: options.keepAlive,
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
this.oauth = oauth;
|
package/src/auth/index.js
CHANGED
|
@@ -43,6 +43,7 @@ class AuthenticationClient {
|
|
|
43
43
|
* @param {boolean} [options.__bypassIdTokenValidation] Whether the id_token should be validated or not
|
|
44
44
|
* @param {object} [options.headers] Additional headers that will be added to the outgoing requests.
|
|
45
45
|
* @param {string} [options.proxy] Add the `superagent-proxy` dependency and specify a proxy url eg 'https://myproxy.com:1234'
|
|
46
|
+
* @param {boolean} [options.keepAlive] Keep the http connections alive.
|
|
46
47
|
*/
|
|
47
48
|
constructor(options) {
|
|
48
49
|
if (!options || typeof options !== 'object') {
|
|
@@ -69,6 +70,7 @@ class AuthenticationClient {
|
|
|
69
70
|
supportedAlgorithms: options.supportedAlgorithms,
|
|
70
71
|
__bypassIdTokenValidation: options.__bypassIdTokenValidation,
|
|
71
72
|
proxy: options.proxy,
|
|
73
|
+
keepAlive: options.keepAlive,
|
|
72
74
|
};
|
|
73
75
|
|
|
74
76
|
if (options.telemetry !== false) {
|
package/src/management/index.js
CHANGED
|
@@ -108,7 +108,8 @@ class ManagementClient {
|
|
|
108
108
|
* @param {number} [options.retry.maxRetries=10] Retry failed requests X times.
|
|
109
109
|
* @param {object} [options.headers] Additional headers that will be added to the outgoing requests.
|
|
110
110
|
* @param {string} [options.proxy] Add the `superagent-proxy` dependency and specify a proxy url eg 'https://myproxy.com:1234'
|
|
111
|
-
* @param {boolean} [options.includeResponseHeaders]
|
|
111
|
+
* @param {boolean} [options.includeResponseHeaders] Include the response headers in the payload in the format `{ data, headers }`.
|
|
112
|
+
* @param {boolean} [options.keepAlive] Keep the http connections alive.
|
|
112
113
|
*/
|
|
113
114
|
constructor(options) {
|
|
114
115
|
if (!options || typeof options !== 'object') {
|
|
@@ -172,6 +173,7 @@ class ManagementClient {
|
|
|
172
173
|
managerOptions.retry = options.retry;
|
|
173
174
|
managerOptions.includeResponseHeaders = options.includeResponseHeaders;
|
|
174
175
|
managerOptions.proxy = options.proxy;
|
|
176
|
+
managerOptions.keepAlive = options.keepAlive;
|
|
175
177
|
|
|
176
178
|
/**
|
|
177
179
|
* Simple abstraction for performing CRUD operations on the
|