Comparing version 2.36.2 to 2.37.0
# Change Log | ||
## [v2.37.0](https://github.com/auth0/node-auth0/tree/v2.37.0) (2021-10-14) | ||
[Full Changelog](https://github.com/auth0/node-auth0/compare/v2.36.2...v2.37.0) | ||
**Added** | ||
- Add support for checking connection status [\#662](https://github.com/auth0/node-auth0/pull/662) ([frederikprijck](https://github.com/frederikprijck)) | ||
**Fixed** | ||
- Fix undefined tokenProvider when access token is provided. [\#642](https://github.com/auth0/node-auth0/pull/642) ([Gilighost](https://github.com/Gilighost)) | ||
## [v2.36.2](https://github.com/auth0/node-auth0/tree/v2.36.2) (2021-09-20) | ||
@@ -4,0 +16,0 @@ |
{ | ||
"name": "auth0", | ||
"version": "2.36.2", | ||
"version": "2.37.0", | ||
"description": "SDK for Auth0 API v2", | ||
@@ -33,3 +33,3 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"axios": "^0.21.3", | ||
"axios": "^0.21.4", | ||
"es6-promisify": "^6.1.1", | ||
@@ -36,0 +36,0 @@ "form-data": "^3.0.1", |
@@ -598,2 +598,4 @@ /** @module auth **/ | ||
* @param {String} [userData.realm] Name of the realm to use to authenticate or the connection name | ||
* @param {Object} [options] Additional options. | ||
* @param {String} [options.forwardedFor] Value to be used for auth0-forwarded-for header | ||
* | ||
@@ -600,0 +602,0 @@ * @return {Promise|undefined} |
@@ -54,2 +54,9 @@ var ArgumentError = require('rest-facade').ArgumentError; | ||
var statusClient = new Auth0RestClient( | ||
options.baseUrl + '/connections/:id/status', | ||
clientOptions, | ||
options.tokenProvider | ||
); | ||
this.status = new RetryRestClient(statusClient, options.retry); | ||
/** | ||
@@ -197,2 +204,30 @@ * Provides an abstraction layer for consuming the | ||
/** | ||
* Checks the status of an ad/ldap connection referenced by its ID. | ||
* | ||
* @method checkStatus | ||
* @memberOf module:management.OrganizationsManager.prototype | ||
* | ||
* @example | ||
* var params = {id : 'CONNECTION_ID'} | ||
* @example <caption> | ||
* This methods takes the connection ID and returns the status when online, or an error when offline. | ||
* </caption> | ||
* | ||
* management.connections.checkStatus( {id : 'CONNECTION_ID'}, function (err, status) { | ||
* if (err) { | ||
* console.log('OFFLINE', err); | ||
* } else { | ||
* console.log('ONLINE', status); | ||
* } | ||
* }); | ||
* | ||
* @param {Object} params Connection parameters | ||
* @param {String} params.id ID of the Connection. | ||
* @param {Function} [cb] Callback function. | ||
* | ||
* @return {Promise|undefined} | ||
*/ | ||
utils.wrapPropertyMethod(ConnectionsManager, 'checkStatus', 'status.get'); | ||
/** | ||
* Delete a connection user by email. | ||
@@ -199,0 +234,0 @@ * |
@@ -267,3 +267,4 @@ var ArgumentError = require('rest-facade').ArgumentError; | ||
* | ||
* @param {String} [organization_id] Organization ID | ||
* @param {Object} params Organization parameters. | ||
* @param {String} params.id Organization ID. | ||
* @param {Function} [cb] Callback function. | ||
@@ -293,3 +294,5 @@ * | ||
* | ||
* @param {String} [organization_id] Organization ID | ||
* @param {Object} params Organization parameters. | ||
* @param {String} params.id Organization ID. | ||
* @param {String} params.connection_id Connection ID. | ||
* @param {Function} [cb] Callback function. | ||
@@ -319,2 +322,3 @@ * | ||
* | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id ID of the Organization. | ||
@@ -361,3 +365,3 @@ * @param {Object} data enable connection data | ||
* }); | ||
* | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id ID of the Organization. | ||
@@ -410,2 +414,3 @@ * @param {String} params.connection_id ID of the Connection. | ||
* | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id ID of the Organization. | ||
@@ -464,3 +469,4 @@ * @param {String} params.connection_id ID of the Connection. | ||
* | ||
* @param {String} [params.id] Organization ID | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id Organization ID | ||
* @param {String} [params.from] For checkpoint pagination, the Id from which to start selection from. | ||
@@ -491,2 +497,3 @@ * @param {Number} [params.take] For checkpoint pagination, the number of entries to retrieve. Default 50. | ||
* | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id ID of the Organization. | ||
@@ -533,2 +540,3 @@ * @param {Object} data add members data | ||
* | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id ID of the Organization. | ||
@@ -579,3 +587,11 @@ * @param {Object} data add members data | ||
* | ||
* @param {String} [params.id] Organization ID | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id Organization ID | ||
* @param {Number} [params.per_page] Number of results per page. | ||
* @param {Number} [params.page] Page number, zero indexed. | ||
* @param {String} [params.from] For checkpoint pagination, the Id from which to start selection from. | ||
* @param {Number} [params.take] For checkpoint pagination, the number of entries to retrieve. Default 50. | ||
* @param {String} [params.fields] Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. | ||
* @param {Boolean} [params.include_fields] Whether specified fields are to be included (true) or excluded (false). Defaults to true. | ||
* @param {String} [params.sort] Field to sort by. Use field:order where order is 1 for ascending and -1 for descending Defaults to created_at:-1. | ||
* @param {Function} [cb] Callback function. | ||
@@ -605,4 +621,6 @@ * | ||
* | ||
* @param {String} [organization_id] Organization ID | ||
* @param {Function} [cb] Callback function. | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id Organization ID | ||
* @param {String} params.invitation_id Invitation ID | ||
* @param {Function} [cb] Callback function. | ||
* | ||
@@ -649,2 +667,3 @@ * @return {Promise|undefined} | ||
* | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id ID of the Organization. | ||
@@ -700,2 +719,3 @@ * @param {Array} data Invitation data | ||
* | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id ID of the Organization. | ||
@@ -751,2 +771,3 @@ * @param {String} params.invitation_id Invitation ID | ||
* | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id ID of the Organization. | ||
@@ -778,2 +799,3 @@ * @param {String} params.user_id ID of the user. | ||
* | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id ID of the Organization. | ||
@@ -828,2 +850,3 @@ * @param {String} params.user_id ID of the user. | ||
* | ||
* @param {Object} params Organization parameters | ||
* @param {String} params.id ID of the Organization. | ||
@@ -830,0 +853,0 @@ * @param {String} params.user_id Id of the User |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
453223
13135
0
1
Updatedaxios@^0.21.4