Simple facade for consuming a REST API endpoint.
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1639,7 +1739,7 @@
- Source:
- @@ -1224,7 +1224,7 @@
- @@ -1504,7 +1504,7 @@
- Source:
- @@ -1866,7 +1866,7 @@
- Source:
- @@ -2044,7 +2044,7 @@
- Source:
- @@ -2365,7 +2365,7 @@
- Source:
- @@ -2602,7 +2602,7 @@
- Source:
- @@ -3995,33 +3995,7 @@
- @@ -910,7 +910,7 @@
- @@ -1388,7 +1388,7 @@
- Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source:
- @@ -1515,7 +1515,7 @@
- @@ -2841,6 +2841,42 @@
- Source:
- @@ -763,7 +763,7 @@
- Source:
- @@ -838,7 +838,7 @@
- @@ -913,7 +913,7 @@
- Source:
- @@ -988,7 +988,7 @@
- @@ -1063,7 +1063,7 @@
- Source:
- @@ -1138,7 +1138,7 @@
- Source:
- @@ -1213,7 +1213,7 @@
- Source:
- @@ -1288,7 +1288,7 @@
- Source:
- @@ -1363,7 +1363,7 @@
- Source:
- @@ -1438,7 +1438,7 @@
- @@ -1513,7 +1513,7 @@
- @@ -1588,7 +1588,7 @@
- @@ -1662,7 +1662,7 @@
- @@ -1736,7 +1736,7 @@
- @@ -1810,7 +1810,7 @@
- Source:
- @@ -1884,7 +1884,7 @@
- Source:
- @@ -1911,6 +1911,80 @@
- Source: +
- + + + + + + + +
-
+
+
OrganizationsManager
+ + +
+ - @@ -2033,7 +2107,7 @@
- Source:
- @@ -2108,7 +2182,7 @@
- @@ -2183,7 +2257,7 @@
- @@ -2257,7 +2331,7 @@
- Source:
- @@ -2331,7 +2405,7 @@
- @@ -2405,7 +2479,7 @@
- @@ -2479,7 +2553,7 @@
- @@ -2554,7 +2628,7 @@
- Source:
- @@ -2629,7 +2703,7 @@
- @@ -2713,7 +2787,7 @@
- Source:
- @@ -3018,7 +3092,7 @@
- Source:
- @@ -3397,7 +3471,7 @@
- @@ -3754,7 +3828,7 @@
- Source:
- @@ -4111,7 +4185,7 @@
- Source:
- @@ -4494,7 +4568,7 @@
- Source:
- @@ -4794,7 +4868,7 @@
- @@ -5012,7 +5086,7 @@
- Source:
- @@ -5230,7 +5304,7 @@
- Source:
- @@ -5448,7 +5522,7 @@
- Source:
- @@ -5666,7 +5740,7 @@
- Source:
- @@ -5884,7 +5958,7 @@
- Source:
- @@ -6102,7 +6176,7 @@
- Source:
- @@ -6318,7 +6392,7 @@
- @@ -6502,7 +6576,7 @@
- @@ -6682,7 +6756,7 @@
- Source:
- @@ -6900,7 +6974,7 @@
- Source:
- @@ -7118,7 +7192,7 @@
- Source:
- @@ -7310,7 +7384,7 @@
- Source:
- @@ -7528,7 +7602,7 @@
- Source:
- @@ -7747,7 +7821,7 @@
- Source:
- @@ -7965,7 +8039,7 @@
- Source:
- @@ -8185,7 +8259,7 @@
- Source:
- @@ -8369,7 +8443,7 @@
- @@ -8619,7 +8693,7 @@
- Source:
- @@ -8888,7 +8962,7 @@
- Source:
- @@ -9157,7 +9231,7 @@
- Source:
- @@ -9426,7 +9500,7 @@
- Source:
- @@ -9695,7 +9769,7 @@
- @@ -9966,7 +10040,7 @@
- Source:
- @@ -10150,7 +10224,7 @@
- @@ -10419,7 +10493,7 @@
- Source:
- @@ -10688,7 +10762,7 @@
- Source:
- @@ -10957,7 +11031,7 @@
- Source:
- @@ -11226,7 +11300,7 @@
- Source:
- @@ -11495,7 +11569,7 @@
- Source:
- @@ -11764,7 +11838,7 @@
- Source:
- @@ -12033,7 +12107,7 @@
- Source:
- @@ -12302,7 +12376,7 @@
- Source:
- @@ -12603,7 +12677,7 @@
- Source:
- @@ -12900,7 +12974,7 @@
- Source:
- @@ -13314,7 +13388,7 @@
- Source:
- @@ -13422,7 +13496,7 @@
- Source:
- @@ -13606,7 +13680,7 @@
- Source:
- @@ -13786,7 +13860,7 @@
- Source:
- @@ -14039,7 +14113,7 @@
- @@ -14292,7 +14366,7 @@
- @@ -14561,7 +14635,7 @@
- Source:
- @@ -14888,7 +14962,7 @@
- Source:
- @@ -15215,7 +15289,7 @@
- Source:
- @@ -15484,7 +15558,7 @@
- Source:
- @@ -15811,7 +15885,7 @@
- Source:
- @@ -16080,7 +16154,7 @@
- Source:
- @@ -16196,7 +16270,7 @@
- Source:
- @@ -16496,7 +16570,7 @@
- Source:
- @@ -16712,7 +16786,7 @@
- Source:
- @@ -17027,7 +17101,7 @@
- Source:
- @@ -17296,7 +17370,7 @@
- @@ -17700,7 +17774,7 @@
- Source:
- @@ -17965,7 +18039,7 @@
- @@ -18230,7 +18304,7 @@
- @@ -18444,7 +18518,7 @@
- Source:
- @@ -18624,7 +18698,7 @@
- @@ -18838,7 +18912,7 @@
- Source:
- @@ -19052,7 +19126,7 @@
- @@ -19232,7 +19306,7 @@
- @@ -19412,7 +19486,7 @@
- Source:
- @@ -19592,7 +19666,7 @@
- @@ -19861,7 +19935,7 @@
- @@ -20188,7 +20262,7 @@
- Source:
- @@ -20458,7 +20532,7 @@
- @@ -20732,7 +20806,7 @@
- @@ -21001,7 +21075,7 @@
- @@ -21508,7 +21582,7 @@
- Source:
- @@ -21777,7 +21851,7 @@
- Source:
- @@ -21962,7 +22036,7 @@
- Source:
- @@ -22186,7 +22260,7 @@
- Source:
- @@ -22370,7 +22444,7 @@
- Source:
- @@ -22639,7 +22713,7 @@
- Source:
- @@ -22966,7 +23040,7 @@
- @@ -23235,7 +23309,7 @@
- @@ -23562,7 +23636,7 @@
- @@ -23831,7 +23905,7 @@
- @@ -24158,7 +24232,7 @@
- Source:
- @@ -24342,7 +24416,7 @@
- Source:
- @@ -24526,7 +24600,7 @@
- @@ -24791,7 +24865,7 @@
- Source:
- @@ -25060,7 +25134,7 @@
- @@ -25329,7 +25403,7 @@
- Source:
- @@ -25704,7 +25778,7 @@
- Source:
- @@ -26079,7 +26153,7 @@
- Source:
- @@ -26454,7 +26528,7 @@
- @@ -26855,7 +26929,7 @@
- Source:
- @@ -27211,7 +27285,7 @@
- Source:
- @@ -27363,6 +27437,78 @@
- Source:
- @@ -27939,7 +28085,7 @@
- Source:
- @@ -28365,7 +28511,7 @@
- @@ -28634,7 +28780,7 @@
- @@ -29021,7 +29167,7 @@
- @@ -29286,7 +29432,7 @@
- Source:
- @@ -29591,7 +29737,7 @@
- @@ -29970,7 +30116,7 @@
- @@ -30327,7 +30473,7 @@
- Source:
- @@ -30684,7 +30830,7 @@
- Source:
- @@ -30955,7 +31101,7 @@
- @@ -31205,7 +31351,7 @@
- Source:
- @@ -31562,7 +31708,7 @@
- Source:
- @@ -31831,7 +31977,7 @@
- Source:
- @@ -32100,7 +32246,7 @@
- Source:
- @@ -32423,7 +32569,7 @@
- Source:
- @@ -32732,7 +32878,7 @@
- @@ -32985,7 +33131,7 @@
- Source:
- @@ -33291,7 +33437,7 @@
- Source:
- @@ -33601,7 +33747,7 @@
- Source:
- @@ -33907,7 +34053,7 @@
- Source:
- @@ -34160,7 +34306,7 @@
- Source:
- @@ -34466,7 +34612,7 @@
- Source:
- -
diff --git a/docs/global.html b/docs/global.html
index 34c5399d7..ffaede064 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -24,7 +24,7 @@
@@ -423,7 +423,7 @@ Returns:
diff --git a/docs/index.html b/docs/index.html
index b821a38a1..1039a4cbf 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -24,7 +24,7 @@
@@ -176,7 +176,7 @@ License
diff --git a/docs/index.js.html b/docs/index.js.html
index ce3f96166..f9eb4dbe6 100644
--- a/docs/index.js.html
+++ b/docs/index.js.html
@@ -24,7 +24,7 @@
@@ -61,7 +61,7 @@ index.js
diff --git a/docs/management_BlacklistedTokensManager.js.html b/docs/management_BlacklistedTokensManager.js.html
index 873f9dd5d..93bb38212 100644
--- a/docs/management_BlacklistedTokensManager.js.html
+++ b/docs/management_BlacklistedTokensManager.js.html
@@ -24,7 +24,7 @@
@@ -153,7 +153,7 @@ management/BlacklistedTokensManager.js
diff --git a/docs/management_BrandingManager.js.html b/docs/management_BrandingManager.js.html
index 850c67ddc..83ea5af41 100644
--- a/docs/management_BrandingManager.js.html
+++ b/docs/management_BrandingManager.js.html
@@ -24,7 +24,7 @@
@@ -234,7 +234,7 @@ management/BrandingManager.js
diff --git a/docs/management_ClientGrantsManager.js.html b/docs/management_ClientGrantsManager.js.html
index 756dfb9d1..81a74f48e 100644
--- a/docs/management_ClientGrantsManager.js.html
+++ b/docs/management_ClientGrantsManager.js.html
@@ -24,7 +24,7 @@
@@ -216,7 +216,7 @@ management/ClientGrantsManager.js
diff --git a/docs/management_ClientsManager.js.html b/docs/management_ClientsManager.js.html
index 8bd51efde..e875b7a62 100644
--- a/docs/management_ClientsManager.js.html
+++ b/docs/management_ClientsManager.js.html
@@ -24,7 +24,7 @@
@@ -238,7 +238,7 @@ management/ClientsManager.js
diff --git a/docs/management_ConnectionsManager.js.html b/docs/management_ConnectionsManager.js.html
index f2fd1142f..2043094fa 100644
--- a/docs/management_ConnectionsManager.js.html
+++ b/docs/management_ConnectionsManager.js.html
@@ -24,7 +24,7 @@
@@ -284,7 +284,7 @@ management/ConnectionsManager.js
diff --git a/docs/management_CustomDomainsManager.js.html b/docs/management_CustomDomainsManager.js.html
index cd2419bd0..40dc34621 100644
--- a/docs/management_CustomDomainsManager.js.html
+++ b/docs/management_CustomDomainsManager.js.html
@@ -24,7 +24,7 @@
@@ -241,7 +241,7 @@ management/CustomDomainsManager.js
diff --git a/docs/management_DeviceCredentialsManager.js.html b/docs/management_DeviceCredentialsManager.js.html
index f2c945b4f..ff7d7a9d8 100644
--- a/docs/management_DeviceCredentialsManager.js.html
+++ b/docs/management_DeviceCredentialsManager.js.html
@@ -24,7 +24,7 @@
@@ -180,7 +180,7 @@ management/DeviceCredentialsManager.js
diff --git a/docs/management_EmailProviderManager.js.html b/docs/management_EmailProviderManager.js.html
index c1f4410ed..062d4c42b 100644
--- a/docs/management_EmailProviderManager.js.html
+++ b/docs/management_EmailProviderManager.js.html
@@ -24,7 +24,7 @@
@@ -198,7 +198,7 @@ management/EmailProviderManager.js
diff --git a/docs/management_EmailTemplatesManager.js.html b/docs/management_EmailTemplatesManager.js.html
index 7e4ccd4bd..9ce9a579a 100644
--- a/docs/management_EmailTemplatesManager.js.html
+++ b/docs/management_EmailTemplatesManager.js.html
@@ -24,7 +24,7 @@
@@ -180,7 +180,7 @@ management/EmailTemplatesManager.js
diff --git a/docs/management_GrantsManager.js.html b/docs/management_GrantsManager.js.html
index bf324f0d6..a78b358ea 100644
--- a/docs/management_GrantsManager.js.html
+++ b/docs/management_GrantsManager.js.html
@@ -24,7 +24,7 @@
@@ -170,7 +170,7 @@ management/GrantsManager.js
diff --git a/docs/management_GuardianManager.js.html b/docs/management_GuardianManager.js.html
index cded592d5..038c30937 100644
--- a/docs/management_GuardianManager.js.html
+++ b/docs/management_GuardianManager.js.html
@@ -24,7 +24,7 @@
@@ -559,7 +559,7 @@ management/GuardianManager.js
diff --git a/docs/management_HooksManager.js.html b/docs/management_HooksManager.js.html
index 1e154c771..5014befe2 100644
--- a/docs/management_HooksManager.js.html
+++ b/docs/management_HooksManager.js.html
@@ -24,7 +24,7 @@
@@ -419,7 +419,7 @@ management/HooksManager.js
diff --git a/docs/management_JobsManager.js.html b/docs/management_JobsManager.js.html
index 8ec7899d1..a87bd9479 100644
--- a/docs/management_JobsManager.js.html
+++ b/docs/management_JobsManager.js.html
@@ -24,7 +24,7 @@
@@ -405,6 +405,7 @@ management/JobsManager.js
*
* @param {Object} data User data object.
* @param {String} data.user_id ID of the user to be verified.
+ * @param {String} [data.organization_id] Organization ID
* @param {String} [data.client_id] client_id of the client (application). If no value provided, the global Client ID will be used.
* @param {Object} [data.identity] Used to verify secondary, federated, and passwordless-email identities.
* @param {String} data.identity.user_id user_id of the identity.
@@ -439,7 +440,7 @@ management/JobsManager.js
diff --git a/docs/management_LogStreamsManager.js.html b/docs/management_LogStreamsManager.js.html
index e521dd0cd..5f3a15c2b 100644
--- a/docs/management_LogStreamsManager.js.html
+++ b/docs/management_LogStreamsManager.js.html
@@ -24,7 +24,7 @@
@@ -230,7 +230,7 @@ management/LogStreamsManager.js
diff --git a/docs/management_LogsManager.js.html b/docs/management_LogsManager.js.html
index 8114f63a8..471055d87 100644
--- a/docs/management_LogsManager.js.html
+++ b/docs/management_LogsManager.js.html
@@ -24,7 +24,7 @@
@@ -165,7 +165,7 @@ management/LogsManager.js
diff --git a/docs/management_ManagementTokenProvider.js.html b/docs/management_ManagementTokenProvider.js.html
index 9a11c9277..83c405ec1 100644
--- a/docs/management_ManagementTokenProvider.js.html
+++ b/docs/management_ManagementTokenProvider.js.html
@@ -24,7 +24,7 @@
@@ -194,7 +194,7 @@ management/ManagementTokenProvider.js
diff --git a/docs/management_MigrationsManager.js.html b/docs/management_MigrationsManager.js.html
index 6df0de382..6738fa8c8 100644
--- a/docs/management_MigrationsManager.js.html
+++ b/docs/management_MigrationsManager.js.html
@@ -24,7 +24,7 @@
@@ -159,7 +159,7 @@ management/MigrationsManager.js
diff --git a/docs/management_OrganizationsManager.js.html b/docs/management_OrganizationsManager.js.html
new file mode 100644
index 000000000..293736c39
--- /dev/null
+++ b/docs/management_OrganizationsManager.js.html
@@ -0,0 +1,903 @@
+
+
+
+
+
+ management/OrganizationsManager.js - Documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ management/OrganizationsManager.js
+
+
+
+
+
+
+
+
+
+ var ArgumentError = require('rest-facade').ArgumentError;
+var utils = require('../utils');
+var Auth0RestClient = require('../Auth0RestClient');
+var RetryRestClient = require('../RetryRestClient');
+
+/**
+ * Simple facade for consuming a REST API endpoint.
+ * @external RestClient
+ * @see https://github.com/ngonzalvez/rest-facade
+ */
+
+/**
+ * @class OrganizationsManager
+ * The organizations class provides a simple abstraction for performing CRUD operations
+ * on Auth0 OrganizationsManager.
+ * @constructor
+ * @memberOf module:management
+ *
+ * @param {Object} options The client options.
+ * @param {String} options.baseUrl The URL of the API.
+ * @param {Object} [options.headers] Headers to be included in all requests.
+ * @param {Object} [options.retry] Retry Policy Config
+ */
+var OrganizationsManager = function(options) {
+ if (options === null || typeof options !== 'object') {
+ throw new ArgumentError('Must provide manager options');
+ }
+
+ if (options.baseUrl === null || options.baseUrl === undefined) {
+ throw new ArgumentError('Must provide a base URL for the API');
+ }
+
+ if ('string' !== typeof options.baseUrl || options.baseUrl.length === 0) {
+ throw new ArgumentError('The provided base URL is invalid');
+ }
+
+ /**
+ * Options object for the Rest Client instance.
+ *
+ * @type {Object}
+ */
+ var clientOptions = {
+ headers: options.headers,
+ query: { repeatParams: false }
+ };
+
+ /**
+ * Provides an abstraction layer for performing CRUD operations on
+ * {@link https://auth0.com/docs/api/v2}.
+ *
+ * @type {external:RestClient}
+ */
+ var auth0RestClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/:id',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.organizations = new RetryRestClient(auth0RestClient, options.retry);
+
+ var connectionsInRoleClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/:id/enabled_connections/:connection_id',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.connections = new RetryRestClient(connectionsInRoleClient, options.retry);
+
+ var membersClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/:id/members/:user_id',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.members = new RetryRestClient(membersClient, options.retry);
+
+ var invitationClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/:id/invitations/:invitation_id',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.invitations = new RetryRestClient(invitationClient, options.retry);
+
+ var rolesClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/:id/members/:user_id/roles',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.roles = new RetryRestClient(rolesClient, options.retry);
+
+ var organizationByNameClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/name/:name',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.organizationsByName = new RetryRestClient(organizationByNameClient, options.retry);
+};
+
+/**
+ * Create a new organization.
+ *
+ * @method create
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * management.organizations.create(data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ *
+ * // Organization created.
+ * });
+ *
+ * @param {Object} data Organization data object.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'create', 'organizations.create');
+
+/**
+ * Get all organizations.
+ *
+ * @method getAll
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example <caption>
+ * This method takes an optional object as first argument that may be used to
+ * specify pagination settings. If pagination options are not present,
+ * the first page of a limited number of results will be returned.
+ * </caption>
+ *
+ * // Pagination settings.
+ * var params = {
+ * per_page: 10,
+ * page: 0
+ * };
+ *
+ * management.organizations.getAll(params, function (err, organizations) {
+ * console.log(organizations.length);
+ * });
+ *
+ * @param {Object} [params] Organizations parameters.
+ * @param {Number} [params.per_page] Number of results per page.
+ * @param {Number} [params.page] Page number, zero indexed.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'getAll', 'organizations.getAll');
+
+/**
+ * Get an Auth0 organization.
+ *
+ * @method getByID
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * management.organizations.getByID({ id: ORGANIZATION_ID }, function (err, role) {
+ * if (err) {
+ * // Handle error.
+ * }
+ *
+ * console.log(organization);
+ * });
+ *
+ * @param {Object} params Organization parameters.
+ * @param {String} params.id Organization ID.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'getByID', 'organizations.get');
+
+/**
+ * Get an Auth0 organization.
+ *
+ * @method getByName
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * management.organizations.getByName({ name: ORGANIZATION_NAME}, function (err, role) {
+ * if (err) {
+ * // Handle error.
+ * }
+ *
+ * console.log(organization);
+ * });
+ *
+ * @param {Object} params Organization parameters.
+ * @param {String} params.name Organization name.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'getByName', 'organizationsByName.get');
+
+/**
+ * Update an existing organization.
+ *
+ * @method update
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var data = { display_name: 'New name' };
+ * var params = { id: ORGANIZATION_ID };
+ *
+ * management.organizations.update(params, data, function (err, organization) {
+ * if (err) {
+ * // Handle error.
+ * }
+ *
+ * console.log(organization.name); // 'New name'
+ * });
+ *
+ * @param {Object} params Organization parameters.
+ * @param {String} params.id Organization ID.
+ * @param {Object} data Updated organization data.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'update', 'organizations.patch');
+
+/**
+ * Delete an existing organization.
+ *
+ * @method delete
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * management.organizations.delete({ id: ORGANIZATION_ID }, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ *
+ * // Organization deleted.
+ * });
+ *
+ * @param {Object} params Organization parameters.
+ * @param {String} params.id Organization ID.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'delete', 'organizations.delete');
+
+/**
+ **** Organization Connections
+ */
+
+/**
+ * Get Enabled Connections in a Organization
+ *
+ * @method getEnabledConnections
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID'}
+ * @example <caption>
+ * This method takes an organization ID and returns the enabled connections in an Organization
+ * </caption>
+ *
+ * management.organizations.getEnabledConnections( {id : 'ORGANIZATION_ID'}, function (err, enabled_connections) {
+ * console.log(enabled_connections);
+ * });
+ *
+ * @param {String} [organization_id] Organization ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getEnabledConnections = function(params, callback) {
+ return this.connections.getAll(params, callback);
+};
+
+/**
+ * Get Enabled Connection in a Organization
+ *
+ * @method getEnabledConnection
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID', connection_id: 'CONNECTION_ID'}
+ * @example <caption>
+ * This methods takes the organization ID and connection ID and returns the enabled connection
+ * </caption>
+ *
+ * management.organizations.getEnabledConnections( {id : 'ORGANIZATION_ID', connection_id: 'CONNECTION_ID'}, function (err, enabled_connection) {
+ * console.log(enabled_connection);
+ * });
+ *
+ * @param {String} [organization_id] Organization ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getEnabledConnection = function(params, callback) {
+ return this.connections.get(params, callback);
+};
+
+/**
+ * Add an enabled connection for an organization
+ *
+ * @method addEnabledConnection
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID'};
+ * var data = { "connection_id" : "CONNECTION_ID", assign_membership_on_login: false };
+ *
+ * management.organizations.addEnabledConnection(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {Object} data enable connection data
+ * @param {String} data.connection_id connection ID to enable
+ * @param {Boolean} data.assign_membership_on_login flag to allow assign membership on login
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+
+OrganizationsManager.prototype.addEnabledConnection = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.connections.create(params, data, cb);
+ }
+
+ return this.connections.create(params, data);
+};
+
+/**
+ * Remove an enabled connection from an organization
+ *
+ * @method removeEnabledConnection
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID', connection_id: 'CONNECTION_ID' };
+ *
+ * management.organizations.removeEnabledConnection(params, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.connection_id ID of the Connection.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+
+OrganizationsManager.prototype.removeEnabledConnection = function(params, cb) {
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.connection_id) {
+ throw new ArgumentError('The connection ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.connection_id !== 'string') {
+ throw new ArgumentError('The connection ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.connections.delete(params, {}, cb);
+ }
+
+ return this.connections.delete(params, {});
+};
+
+/**
+ * Update an enabled connection from an organization
+ *
+ * @method updateEnabledConnection
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID', connection_id: 'CONNECTION_ID' };
+ * var data = { assign_membership_on_login: true };
+ *
+ * management.organizations.updateEnabledConnection(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.connection_id ID of the Connection.
+ * @param {Object} data Updated connection.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+
+OrganizationsManager.prototype.updateEnabledConnection = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.connection_id) {
+ throw new ArgumentError('The connection ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.connection_id !== 'string') {
+ throw new ArgumentError('The connection ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.connections.patch(params, data, cb);
+ }
+
+ return this.connections.patch(params, data);
+};
+
+/**
+ **** Organization Members
+ */
+
+/**
+ * Get Members in a Organization
+ *
+ * @method getMembers
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID'}
+ * @example <caption>
+ * This method takes an organization ID and returns the members in an Organization
+ * </caption>
+ *
+ * management.organizations.getMembers( {id : 'ORGANIZATION_ID'}, function (err, members) {
+ * console.log(members);
+ * });
+ *
+ * @param {String} [params.id] Organization ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getMembers = function(params, callback) {
+ return this.members.getAll(params, callback);
+};
+
+/**
+ * Add members in an organization
+ *
+ * @method addMembers
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID'};
+ * var data = { members: [ 'USER_ID1', 'USER_ID2' ] }
+ * management.organizations.addMembers(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {Object} data add members data
+ * @param {Array} data.members Array of user IDs
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.addMembers = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.members.create(params, data, cb);
+ }
+
+ return this.members.create(params, data);
+};
+
+/**
+ * Remove members from an organization
+ *
+ * @method removeMembers
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID' };
+ * var data = { members: [ 'USER_ID1', 'USER_ID2' ] }
+ *
+ * management.organizations.removeMembers(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {Object} data add members data
+ * @param {Array} data.members Array of user IDs
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.removeMembers = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.members.delete(params, data, cb);
+ }
+
+ return this.members.delete(params, data);
+};
+
+/**
+ **** Organization Invites
+ */
+
+/**
+ * Get Invites in a Organization
+ *
+ * @method getInvitations
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID'}
+ * @example <caption>
+ * This method takes an organization ID and returns the invites in an Organization
+ * </caption>
+ *
+ * management.organizations.getInvitations( {id : 'ORGANIZATION_ID'}, function (err, invites) {
+ * console.log(invites);
+ * });
+ *
+ * @param {String} [params.id] Organization ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getInvitations = function(params, callback) {
+ return this.invitations.getAll(params, callback);
+};
+
+/**
+ * Get an Invitation in a Organization
+ *
+ * @method getInvitation
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID', invitation_id: 'INVITATION_ID'}
+ * @example <caption>
+ * This methods takes the organization ID and user ID and returns the invitation
+ * </caption>
+ *
+ * management.organizations.getInvitation({id : 'ORGANIZATION_ID', invitation_id: 'INVITATION_ID'}, function (err, invite) {
+ * console.log(invite);
+ * });
+ *
+ * @param {String} [organization_id] Organization ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getInvitation = function(params, callback) {
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.invitation_id) {
+ throw new ArgumentError('The invitation ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.invitation_id !== 'string') {
+ throw new ArgumentError('The invitation ID has to be a string');
+ }
+
+ return this.invitations.get(params, callback);
+};
+
+/**
+ * Create an invitation in an organization
+ *
+ * @method createInvitation
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID'};
+ * var data = {
+ * client_id: CLIENT_ID,
+ * invitee: { email: 'invitee@example.com' },
+ * inviter: { name: 'John Doe' }
+ * };
+ *
+ * management.organizations.createInvitation(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {Array} data Invitation data
+ * @param {Object} data.inviter The person who is sending the invite.
+ * @param {String} data.inviter.name Name of the person who is sending the invite
+ * @param {Object} data.invitee Invitee to whom invitation is intended for
+ * @param {Object} data.invitee.email Email of the invitee to whom invitation is intended for
+ * @param {String} data.client_id Auth0 client used to resolve the default application login URI. This endpoint must expect &invitation=... and &organization=... parameters (added by API2) to continue the flow with /authorize. If client_id does not have configured login URI, use the tenant level default login route if configured, otherwise return 400
+ * @param {String} [data.connection_id] Force user to authenticate against a specific identity provider.
+ * @param {Object} [data.app_metadata] Application metadata to be assigned to the user after accept the invitation.
+ * @param {Object} [data.user_metadata] User metadata to be assigned to the user after accept the invitation.
+ * @param {Array} [data.roles] List of roles to be assigned to the user
+ * @param {Number} [data.ttl_sec] Number of seconds for which the invitation is valid before expiration. If unspecified or set to 0, this value defaults to 604800 seconds (7 days). Upper limit on ttl_sec is 30 days.
+ * @param {Boolean} [data.send_invitation_email] Whether the user will receive an invitation email (true) or no email (false). Default is true.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.createInvitation = function(params, data, cb) {
+ data = data || [];
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.invitations.create(params, data, cb);
+ }
+
+ return this.invitations.create(params, data);
+};
+
+/**
+ * Delete an invitation from an organization
+ *
+ * @method deleteInvitation
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID', invitation_id: 'INVITATION_ID };
+ *
+ * management.organizations.deleteInvitation(params, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.invitation_id Invitation ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.deleteInvitation = function(params, cb) {
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.invitation_id) {
+ throw new ArgumentError('The invitation ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.invitation_id !== 'string') {
+ throw new ArgumentError('The invitation ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.invitations.delete(params, {}, cb);
+ }
+
+ return this.invitations.delete(params, {});
+};
+
+/**
+ **** Organization Roles Membership
+ */
+
+/**
+ * Get Roles from a Member in a Organization
+ *
+ * @method getMemberRoles
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID', user_id: 'user_id'}
+ * @example <caption>
+ * This methods takes the organization ID and user ID and returns the roles
+ * </caption>
+ *
+ * management.organizations.getMemberRoles( {id : 'ORGANIZATION_ID', user_id: 'user_id'}, function (err, roles) {
+ * console.log(roles);
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.user_id ID of the user.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getMemberRoles = function(params, callback) {
+ return this.roles.getAll(params, callback);
+};
+
+/**
+ * Add a Role to a Member in an organization
+ *
+ * @method addMemberRoles
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID', user_id: 'user_id'};
+ * var data = { roles: ["ROLE_ID_1", "ROLE_ID_2"]}
+ *
+ * management.organizations.addMemberRoles(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.user_id ID of the user.
+ * @param {Object} data Add member roles data.
+ * @param {Array} data.roles Array of role IDs.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.addMemberRoles = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.user_id) {
+ throw new ArgumentError('The user ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.user_id !== 'string') {
+ throw new ArgumentError('The user ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.roles.create(params, data, cb);
+ }
+
+ return this.roles.create(params, data);
+};
+
+/**
+ * Remove Roles from a Member of an organization
+ *
+ * @method removeMemberRoles
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID', user_id: 'USER_ID };
+ * var data = { roles: ["ROLE_ID_1", "ROLE_ID_2"]}
+ *
+ * management.organizations.removeMemberRoles(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.user_id Id of the User
+ * @param {Object} data Remove member roles data.
+ * @param {Array} data.roles Array of role IDs.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.removeMemberRoles = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.user_id) {
+ throw new ArgumentError('The user ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.user_id !== 'string') {
+ throw new ArgumentError('The user ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.roles.delete(params, data, cb);
+ }
+
+ return this.roles.delete(params, data);
+};
+
+module.exports = OrganizationsManager;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/management_PromptsManager.js.html b/docs/management_PromptsManager.js.html
index 522676d07..e773de527 100644
--- a/docs/management_PromptsManager.js.html
+++ b/docs/management_PromptsManager.js.html
@@ -24,7 +24,7 @@
@@ -261,7 +261,7 @@ management/PromptsManager.js
diff --git a/docs/management_ResourceServersManager.js.html b/docs/management_ResourceServersManager.js.html
index 621fef7d2..dd43f748f 100644
--- a/docs/management_ResourceServersManager.js.html
+++ b/docs/management_ResourceServersManager.js.html
@@ -24,7 +24,7 @@
@@ -238,7 +238,7 @@ management/ResourceServersManager.js
diff --git a/docs/management_RolesManager.js.html b/docs/management_RolesManager.js.html
index 20c9d9853..183e45eb5 100644
--- a/docs/management_RolesManager.js.html
+++ b/docs/management_RolesManager.js.html
@@ -24,7 +24,7 @@
@@ -376,22 +376,24 @@ management/RolesManager.js
*
* @example
* var params = {
- * roleId: 'ROLE_ID'
+ * roleId: 'ROLE_ID',
* per_page: 50,
* page: 0
* };
*
* @example <caption>
- * This method takes a roleId and returns all users within that role
+ * This method takes a roleId and returns all users within that role. Supports offset (page, per_page) and checkpoint pagination (from, take). You must use checkpoint pagination to retrieve beyond the first 1000 records.
* </caption>
*
* management.roles.getUsers(params, function (err, users) {
* console.log(users);
* });
*
- * @param {String} [roleId] Id of the role
+ * @param {String} [roleId] Id of the role
* @param {Number} [params.per_page] Number of results per page.
* @param {Number} [params.page] Page number, zero indexed.
+ * @param {String} [params.from] Optional id from which to start selection.
+ * @param {Number} [params.take] The total amount of entries to retrieve when using the from parameter. Defaults to 50.
* @param {Function} [cb] Callback function.
*
* @return {Promise|undefined}
@@ -460,7 +462,7 @@ management/RolesManager.js
diff --git a/docs/management_RulesConfigsManager.js.html b/docs/management_RulesConfigsManager.js.html
index 79ff24aac..73eba8455 100644
--- a/docs/management_RulesConfigsManager.js.html
+++ b/docs/management_RulesConfigsManager.js.html
@@ -24,7 +24,7 @@
@@ -180,7 +180,7 @@ management/RulesConfigsManager.js
diff --git a/docs/management_RulesManager.js.html b/docs/management_RulesManager.js.html
index cdb150601..89b4afda2 100644
--- a/docs/management_RulesManager.js.html
+++ b/docs/management_RulesManager.js.html
@@ -24,7 +24,7 @@
@@ -248,7 +248,7 @@ management/RulesManager.js
diff --git a/docs/management_StatsManager.js.html b/docs/management_StatsManager.js.html
index 1461ba143..60f468822 100644
--- a/docs/management_StatsManager.js.html
+++ b/docs/management_StatsManager.js.html
@@ -24,7 +24,7 @@
@@ -174,7 +174,7 @@ management/StatsManager.js
diff --git a/docs/management_TenantManager.js.html b/docs/management_TenantManager.js.html
index 05b601aa2..27ba4bf71 100644
--- a/docs/management_TenantManager.js.html
+++ b/docs/management_TenantManager.js.html
@@ -24,7 +24,7 @@
@@ -166,7 +166,7 @@ management/TenantManager.js
diff --git a/docs/management_TicketsManager.js.html b/docs/management_TicketsManager.js.html
index 0de81d33b..5f8b411e8 100644
--- a/docs/management_TicketsManager.js.html
+++ b/docs/management_TicketsManager.js.html
@@ -24,7 +24,7 @@
@@ -107,6 +107,16 @@ management/TicketsManager.js
* }
* });
*
+ * @param {Object} data
+ * @param {String} [data.result_url] URL the user will be redirected to once ticket is used.
+ * @param {String} [data.user_id] user_id for whom the ticket should be created. (Conflicts with: connection_id, email)
+ * @param {String} [data.client_id] ID of the client.
+ * @param {String} [data.organization_id] ID of the organization.
+ * @param {String} [data.connection_id] ID of the connection.
+ * @param {Integer} [data.ttl_sec] Number of seconds for which the ticket is valid before expiration.
+ * @param {String} [data.email] Email of the user. (Requires: connection_id)
+ * @param {Boolean} [data.mark_email_as_verified] Whether to set the email_verified attribute to true (true) or whether it should not be updated (false).
+ * @param {Boolean} [data.includeEmailInRedirect] Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false).
* @param {Function} [cb] Callback function.
* @return {Promise}
*/
@@ -147,6 +157,8 @@ management/TicketsManager.js
* @param {Object} [data.identity] Used to verify secondary, federated, and passwordless-email identities.
* @param {String} data.identity.user_id user_id of the identity.
* @param {String} data.identity.provider provider of the identity.
+ * @param {String} [data.client_id] client ID.
+ * @param {String} [data.organization_id] organization ID.
* @param {Function} [cb] Callback function.
* @return {Promise}
*/
@@ -174,7 +186,7 @@ management/TicketsManager.js
diff --git a/docs/management_UserBlocksManager.js.html b/docs/management_UserBlocksManager.js.html
index 3e3c00bb8..fd447964d 100644
--- a/docs/management_UserBlocksManager.js.html
+++ b/docs/management_UserBlocksManager.js.html
@@ -24,7 +24,7 @@
@@ -229,7 +229,7 @@ management/UserBlocksManager.js
diff --git a/docs/management_UsersManager.js.html b/docs/management_UsersManager.js.html
index e9bfbc14c..ea46e6356 100644
--- a/docs/management_UsersManager.js.html
+++ b/docs/management_UsersManager.js.html
@@ -24,7 +24,7 @@
@@ -202,6 +202,13 @@ management/UsersManager.js
options.tokenProvider
);
this.permissions = new RetryRestClient(userPermissionsClient, options.retry);
+
+ var organizationsClient = new Auth0RestClient(
+ options.baseUrl + '/users/:id/organizations',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.organizations = new RetryRestClient(organizationsClient, options.retry);
};
/**
@@ -970,6 +977,27 @@ management/UsersManager.js
return this.permissions.delete(query, data);
};
+/**
+ * Get a list of organizations for a user.
+ *
+ * @method getUserOrganizations
+ * @memberOf module:management.UsersManager.prototype
+ *
+ * @example
+ * management.users.getUserOrganizations({ id: USER_ID }, function (err, orgs) {
+ * console.log(orgs);
+ * });
+ *
+ * @param {Object} data The user data object.
+ * @param {String} data.id The user id.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+UsersManager.prototype.getUserOrganizations = function() {
+ return this.organizations.getAll.apply(this.organizations, arguments);
+};
+
module.exports = UsersManager;
@@ -983,7 +1011,7 @@ management/UsersManager.js
diff --git a/docs/management_index.js.html b/docs/management_index.js.html
index 7d0a1b91f..bf04dec95 100644
--- a/docs/management_index.js.html
+++ b/docs/management_index.js.html
@@ -24,7 +24,7 @@
@@ -75,6 +75,7 @@ management/index.js
var BrandingManager = require('./BrandingManager');
var MigrationsManager = require('./MigrationsManager');
var PromptsManager = require('./PromptsManager');
+var OrganizationsManager = require('./OrganizationsManager');
var BASE_URL_FORMAT = 'https://%s/api/v2';
var MANAGEMENT_API_AUD_FORMAT = 'https://%s/api/v2/';
@@ -391,6 +392,13 @@ management/index.js
* @type {PromptsManager}
*/
this.prompts = new PromptsManager(managerOptions);
+
+ /**
+ * Organizations Manager
+ *
+ * @type {OrganizationsManager}
+ */
+ this.organizations = new OrganizationsManager(managerOptions);
};
/**
@@ -3385,22 +3393,24 @@ management/index.js
*
* @example
* var params = {
- * id: 'ROLE_ID'
+ * id: 'ROLE_ID',
* per_page: 50,
* page: 0
* };
*
* @example <caption>
- * This method takes a roleId and returns all users within that role
+ * This method takes a roleId and returns all users within that role. Supports offset (page, per_page) and checkpoint pagination (from, take). You must use checkpoint pagination to retrieve beyond the first 1000 records.
* </caption>
*
* management.getUsersInRole(params, function (err, users) {
* console.log(users);
* });
*
- * @param {String} [id] Id of the role
+ * @param {String} [id] Id of the role
* @param {Number} [params.per_page] Number of results per page.
* @param {Number} [params.page] Page number, zero indexed.
+ * @param {String} [params.from] Optional id from which to start selection.
+ * @param {Number} [params.take] The total amount of entries to retrieve when using the from parameter. Defaults to 50.
* @param {Function} [cb] Callback function.
*
* @return {Promise|undefined}
@@ -3923,7 +3933,7 @@ management/index.js
diff --git a/docs/module-auth.AuthenticationClient.html b/docs/module-auth.AuthenticationClient.html
index b8240cb74..509fc25d7 100644
--- a/docs/module-auth.AuthenticationClient.html
+++ b/docs/module-auth.AuthenticationClient.html
@@ -24,7 +24,7 @@
@@ -888,7 +888,7 @@ changeP
Source:
get
getProfile<
password
refreshTo
Parameters:
- password
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Verification code.
-
-
-
-
-
-
-
-
- target
+ otp
@@ -4038,7 +4012,7 @@ Parameters:
- Target client ID.
+ Verification code. Use this instead of password
to use the /oauth/token
endpoint.
@@ -4047,7 +4021,7 @@ Parameters:
- grant_type
+ password
@@ -4064,7 +4038,7 @@ Parameters:
- Grant type.
+ Verification code. Use this instead of otp
to use the /oauth/ro
endpoint.
@@ -4160,9 +4134,28 @@ Returns:
Examples
+
+ var data = {
+ username: '{PHONE_NUMBER}'
+ otp: '{VERIFICATION_CODE}'
+};
+
+auth0.verifySMSCode(data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+});
+
+
var data = {
@@ -4207,7 +4200,7 @@ Examples
diff --git a/docs/module-auth.DatabaseAuthenticator.html b/docs/module-auth.DatabaseAuthenticator.html
index 75a7148fa..df32d6744 100644
--- a/docs/module-auth.DatabaseAuthenticator.html
+++ b/docs/module-auth.DatabaseAuthenticator.html
@@ -24,7 +24,7 @@
@@ -1765,7 +1765,7 @@ Example
diff --git a/docs/module-auth.OAUthWithIDTokenValidation.html b/docs/module-auth.OAUthWithIDTokenValidation.html
index 1f84d9e13..63c047069 100644
--- a/docs/module-auth.OAUthWithIDTokenValidation.html
+++ b/docs/module-auth.OAUthWithIDTokenValidation.html
@@ -24,7 +24,7 @@
@@ -450,7 +450,7 @@ Parameters:
diff --git a/docs/module-auth.OAuthAuthenticator.html b/docs/module-auth.OAuthAuthenticator.html
index 7667e9be9..230c0ed9a 100644
--- a/docs/module-auth.OAuthAuthenticator.html
+++ b/docs/module-auth.OAuthAuthenticator.html
@@ -24,7 +24,7 @@
@@ -493,7 +493,7 @@ Methods
- authorizationCodeGrant(data) → {Promise|undefined}
+ authorizationCodeGrant(options) → {Promise|undefined}
@@ -580,7 +580,7 @@ Parameters:
- data
+ options
@@ -599,6 +599,49 @@ Parameters:
Authorization code payload
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ organization
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
@@ -606,7 +649,7 @@ Parameters:
- userData.code
+ code
@@ -632,7 +675,7 @@ Parameters:
- userData.redirect_uri
+ redirect_uri
@@ -658,6 +701,14 @@ Parameters:
+
+
+
+
+
+
+
+
@@ -710,14 +761,15 @@ Example
.
- var data = {
+ var options = {
code: '{CODE}',
redirect_uri: '{REDIRECT_URI}',
client_id: '{CLIENT_ID}', // Optional field.
client_secret: '{CLIENT_SECRET}', // Optional field.
+ organization: '{ORGANIZATION_ID}' // Optiional field.
};
-auth0.oauth.authorizationCodeGrant(data, function (err, userData) {
+auth0.oauth.authorizationCodeGrant(options, function (err, userData) {
if (err) {
// Handle error.
}
@@ -2050,7 +2102,7 @@ Returns:
diff --git a/docs/module-auth.PasswordlessAuthenticator.html b/docs/module-auth.PasswordlessAuthenticator.html
index af41ab7e6..1368a04bc 100644
--- a/docs/module-auth.PasswordlessAuthenticator.html
+++ b/docs/module-auth.PasswordlessAuthenticator.html
@@ -24,7 +24,7 @@
@@ -491,7 +491,7 @@ sendEmailSource:
sendSMSSource:
Parameters:
- otp
+ username
@@ -1417,7 +1417,7 @@ Parameters:
- The user's verification code.
+ The user's phone number if realm=sms, or the user's email if realm=email
@@ -1426,7 +1426,7 @@ Parameters:
- realm
+ otp
@@ -1441,8 +1441,6 @@ Parameters:
- <optional>
-
@@ -1453,13 +1451,11 @@ Parameters:
- sms
-
- Realm string: "sms" or "email".
+ The user's verification code. Required
@@ -1468,7 +1464,7 @@ Parameters:
- username
+ realm
@@ -1483,6 +1479,8 @@ Parameters:
+ <optional>
+
@@ -1493,11 +1491,13 @@ Parameters:
+ sms
+
- The user's phone number if realm=sms, or the user's email if realm=email
+ Realm string: "sms" or "email".
@@ -1521,6 +1521,8 @@ Parameters:
+ <optional>
+
@@ -1535,7 +1537,7 @@ Parameters:
- [DEPRECATED] Password.
+ [DEPRECATED] Password required if using legacy /oauth/ro endpoint
@@ -1772,14 +1774,16 @@ Returns:
Examples
var data = {
- username: '{PHONE_NUMBER}',
- password: '{VERIFICATION_CODE}'
+ username: '{PHONE_NUMBER OR EMAIL}',
+ otp: '{VERIFICATION_CODE}',
+ realm: '{sms or email}' // OPTIONAL DEFAULTS TO SMS
};
auth0.passwordless.signIn(data, function (err) {
@@ -1789,12 +1793,27 @@ Examples
});
+
+ {
+ id_token: String,
+ access_token: String,
+ token_type: String
+}
+
+
var data = {
username: '{PHONE_NUMBER}',
- otp: '{VERIFICATION_CODE}'
+ password: '{VERIFICATION_CODE}'
};
auth0.passwordless.signIn(data, function (err) {
@@ -1803,16 +1822,6 @@ Examples
}
});
-
-
- {
- id_token: String,
- access_token: String,
- token_type: String
-}
-
@@ -1834,7 +1843,7 @@ Examples
diff --git a/docs/module-auth.TokensManager.html b/docs/module-auth.TokensManager.html
index 4fac89847..88d23d9bd 100644
--- a/docs/module-auth.TokensManager.html
+++ b/docs/module-auth.TokensManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
TokensManager
- Provides methods for getting token data and exchanging tokens.
+ TokensManager
+Provides methods for getting token data and exchanging tokens.
@@ -372,6 +373,985 @@ Parameters:
+ Methods
+
+
+
+
+
+
+
+ getDelegationToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Exchange the token of the logged in user with a token that is valid to call
+the API (signed with the API secret).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ refresh_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ target
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ api_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The API to be used (aws, auth0, etc).
+
+
+
+
+
+
+
+
+ grant_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Grant type (password, jwt, etc).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ var data = {
+ id_token: '{ID_TOKEN}',
+ api_type: 'app',
+ target: '{TARGET}',
+ grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer'
+};
+
+auth0.tokens.getDelegationToken(data, function (err, token) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(token);
+});
+
+
+
+
+
+
+
+
+
+
+ getInfo(idToken, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Given an ID token get the user profile linked to it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ idToken
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Method callback.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ auth0.tokens.getInfo(token, function (err, tokenInfo) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(tokenInfo);
+});
+
+
+
+
+
+
+
+
+
+
+ revokeRefreshToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Proactively revoke an issued refresh token.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ client_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ client_secret
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client secret.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ * var data = {
+ token: '{REFRESH_TOKEN}'
+};
+
+auth0.tokens.revokeRefreshToken(data, function (err, _) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Do stuff.
+});
+
+
+
+
+
+
@@ -388,7 +1368,7 @@ Parameters:
diff --git a/docs/module-auth.UsersManager.html b/docs/module-auth.UsersManager.html
index e2b175178..c79000d40 100644
--- a/docs/module-auth.UsersManager.html
+++ b/docs/module-auth.UsersManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
UsersManager
- Provides methods for getting user information and impersonating users.
+ UsersManager
+Provides methods for getting user information and impersonating users.
@@ -1009,7 +1010,7 @@ Example
diff --git a/docs/module-auth.html b/docs/module-auth.html
index 80b90e83f..9abea4ea1 100644
--- a/docs/module-auth.html
+++ b/docs/module-auth.html
@@ -24,7 +24,7 @@
@@ -108,7 +108,7 @@ Classes
diff --git a/docs/module-errors.html b/docs/module-errors.html
index 60ed46bf7..998b07a27 100644
--- a/docs/module-errors.html
+++ b/docs/module-errors.html
@@ -24,7 +24,7 @@
@@ -254,7 +254,7 @@ (st
diff --git a/docs/module-management.BlacklistedTokensManager.html b/docs/module-management.BlacklistedTokensManager.html
index b82c48fad..6ba3c630c 100644
--- a/docs/module-management.BlacklistedTokensManager.html
+++ b/docs/module-management.BlacklistedTokensManager.html
@@ -24,7 +24,7 @@
@@ -991,7 +991,7 @@ Example
diff --git a/docs/module-management.BrandingManager.html b/docs/module-management.BrandingManager.html
index a63d23cf0..2522fd910 100644
--- a/docs/module-management.BrandingManager.html
+++ b/docs/module-management.BrandingManager.html
@@ -24,7 +24,7 @@
@@ -1770,7 +1770,7 @@ Example
diff --git a/docs/module-management.ClientGrantsManager.html b/docs/module-management.ClientGrantsManager.html
index f7671a159..53515c8ad 100644
--- a/docs/module-management.ClientGrantsManager.html
+++ b/docs/module-management.ClientGrantsManager.html
@@ -24,7 +24,7 @@
@@ -1636,7 +1636,7 @@ Example
diff --git a/docs/module-management.ClientsManager.html b/docs/module-management.ClientsManager.html
index 7fee17ad6..9f21a56b2 100644
--- a/docs/module-management.ClientsManager.html
+++ b/docs/module-management.ClientsManager.html
@@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@ Example
diff --git a/docs/module-management.ConnectionsManager.html b/docs/module-management.ConnectionsManager.html
index 90126eaf0..6e271162b 100644
--- a/docs/module-management.ConnectionsManager.html
+++ b/docs/module-management.ConnectionsManager.html
@@ -24,7 +24,7 @@
@@ -2269,7 +2269,7 @@ Example
diff --git a/docs/module-management.CustomDomainsManager.html b/docs/module-management.CustomDomainsManager.html
index cffe008c4..29f8fe58d 100644
--- a/docs/module-management.CustomDomainsManager.html
+++ b/docs/module-management.CustomDomainsManager.html
@@ -24,7 +24,7 @@
@@ -1731,7 +1731,7 @@ Example
diff --git a/docs/module-management.DeviceCredentialsManager.html b/docs/module-management.DeviceCredentialsManager.html
index a9fa3e060..065f7baad 100644
--- a/docs/module-management.DeviceCredentialsManager.html
+++ b/docs/module-management.DeviceCredentialsManager.html
@@ -24,7 +24,7 @@
@@ -1215,7 +1215,7 @@ Example
diff --git a/docs/module-management.EmailProviderManager.html b/docs/module-management.EmailProviderManager.html
index 4f7af385e..257926395 100644
--- a/docs/module-management.EmailProviderManager.html
+++ b/docs/module-management.EmailProviderManager.html
@@ -24,7 +24,7 @@
@@ -1480,7 +1480,7 @@ Example
diff --git a/docs/module-management.EmailTemplatesManager.html b/docs/module-management.EmailTemplatesManager.html
index 4e8b17ab0..284faee7f 100644
--- a/docs/module-management.EmailTemplatesManager.html
+++ b/docs/module-management.EmailTemplatesManager.html
@@ -24,7 +24,7 @@
@@ -1304,7 +1304,7 @@ Example
diff --git a/docs/module-management.GrantsManager.html b/docs/module-management.GrantsManager.html
index 603acc8db..9a03d5727 100644
--- a/docs/module-management.GrantsManager.html
+++ b/docs/module-management.GrantsManager.html
@@ -24,7 +24,7 @@
@@ -842,7 +842,7 @@ deleteGran
Example
diff --git a/docs/module-management.GuardianManager.html b/docs/module-management.GuardianManager.html
index 6f3b2af40..73ee47b07 100644
--- a/docs/module-management.GuardianManager.html
+++ b/docs/module-management.GuardianManager.html
@@ -24,7 +24,7 @@
@@ -4920,7 +4920,7 @@ Example
diff --git a/docs/module-management.HooksManager.html b/docs/module-management.HooksManager.html
index c856e6fff..d709e4ec8 100644
--- a/docs/module-management.HooksManager.html
+++ b/docs/module-management.HooksManager.html
@@ -24,7 +24,7 @@
@@ -3099,7 +3099,7 @@ Example
diff --git a/docs/module-management.JobsManager.html b/docs/module-management.JobsManager.html
index 518826921..c7e81e430 100644
--- a/docs/module-management.JobsManager.html
+++ b/docs/module-management.JobsManager.html
@@ -24,7 +24,7 @@
@@ -890,7 +890,7 @@ errorsSource:
Parameters:
+
+
+ organization_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
+
+
+
+
+
client_id
@@ -3109,7 +3145,7 @@ Example
diff --git a/docs/module-management.LogStreamsManager.html b/docs/module-management.LogStreamsManager.html
index 228787292..4a5a59e7e 100644
--- a/docs/module-management.LogStreamsManager.html
+++ b/docs/module-management.LogStreamsManager.html
@@ -24,7 +24,7 @@
@@ -1763,7 +1763,7 @@ Example
diff --git a/docs/module-management.LogsManager.html b/docs/module-management.LogsManager.html
index f7a3452c2..048122fa6 100644
--- a/docs/module-management.LogsManager.html
+++ b/docs/module-management.LogsManager.html
@@ -24,7 +24,7 @@
@@ -1286,7 +1286,7 @@ Example
diff --git a/docs/module-management.ManagementClient.html b/docs/module-management.ManagementClient.html
index 0d6dd77c3..16bf56466 100644
--- a/docs/module-management.ManagementClient.html
+++ b/docs/module-management.ManagementClient.html
@@ -24,7 +24,7 @@
@@ -106,7 +106,7 @@ new M
blac
brandingSource:
clientGra
clientsSource:
connection
customDo
devi
emailPro
emailTe
grantsSource:
guardianSource:
hooksSource:
jobsSource:
logsSource:
logStreams<
migrations<
Type:
+
+
+
+
+
+organizations :OrganizationsManager
+
+
+
+
+
+ Organizations Manager
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
@@ -1958,7 +2032,7 @@ promptsSource:
resour
rolesSource:
rulesSource:
rulesConf
statsSource:
tenantSource:
ticketsSource:
userBlocks<
usersSource:
addHookS
a
Source:
assi
assi
blackli
Source:
createCli
crea
creat
cre
cr
Source:
Source:
createHook<
create
c
createRole<
createRule<
createUser<
deleteA
Source:
deleteCli
dele
delet
del
Source:
de
Source:
deleteHook<
delete
d
deleteRole<
deleteRule<
dele
deleteUser<
exportUser
getAcce
ge
g
ge
Source:
getClientSource:
getCli
getClients<
getConne
getConn
getCus
getCu
getDaily
g
getEm
getEm
getGrantsSource:
Source:
Source:
get
Source:
Source:
Source:
ge
getHookSource:
getHooksSource:
getHook
getJobSource:
getLogSource:
getLogsSource:
getLogStr
getMigra
g
get
getR
get
getRoleSource:
getRolesSource:
getRuleSource:
getRulesSource:
getRul
getT
getUserSource:
getUserB
Source:
getUserLog
get
getUserRo
getUsersSource:
getUse
getUser
Parameters:
+
+
+ params.from
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Optional id from which to start selection.
+
+
+
+
+
+
+
+
+ params.take
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ The total amount of entries to retrieve when using the from parameter. Defaults to 50.
+
+
+
+
+
+
cb
@@ -27444,13 +27590,13 @@ Returns:
Examples
var params = {
- id: 'ROLE_ID'
+ id: 'ROLE_ID',
per_page: 50,
page: 0
};
management.getUsersInRole(params, function (err, users) {
@@ -27511,7 +27657,7 @@ importUser
importU
Source:
linkUsersSource:
Source:
remo
Source:
Source:
re
Source:
setRule
unblockUse
unblockUse
unlinkUser
upda
Source:
updateCli
upda
updat
up
u
u
Returns:
diff --git a/docs/index.html b/docs/index.html index b821a38a1..1039a4cbf 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,7 +24,7 @@
License
diff --git a/docs/index.js.html b/docs/index.js.html index ce3f96166..f9eb4dbe6 100644 --- a/docs/index.js.html +++ b/docs/index.js.html @@ -24,7 +24,7 @@
index.js
diff --git a/docs/management_BlacklistedTokensManager.js.html b/docs/management_BlacklistedTokensManager.js.html index 873f9dd5d..93bb38212 100644 --- a/docs/management_BlacklistedTokensManager.js.html +++ b/docs/management_BlacklistedTokensManager.js.html @@ -24,7 +24,7 @@
management/BlacklistedTokensManager.js
diff --git a/docs/management_BrandingManager.js.html b/docs/management_BrandingManager.js.html index 850c67ddc..83ea5af41 100644 --- a/docs/management_BrandingManager.js.html +++ b/docs/management_BrandingManager.js.html @@ -24,7 +24,7 @@
management/BrandingManager.js
diff --git a/docs/management_ClientGrantsManager.js.html b/docs/management_ClientGrantsManager.js.html index 756dfb9d1..81a74f48e 100644 --- a/docs/management_ClientGrantsManager.js.html +++ b/docs/management_ClientGrantsManager.js.html @@ -24,7 +24,7 @@
management/ClientGrantsManager.js
diff --git a/docs/management_ClientsManager.js.html b/docs/management_ClientsManager.js.html index 8bd51efde..e875b7a62 100644 --- a/docs/management_ClientsManager.js.html +++ b/docs/management_ClientsManager.js.html @@ -24,7 +24,7 @@
management/ClientsManager.js
diff --git a/docs/management_ConnectionsManager.js.html b/docs/management_ConnectionsManager.js.html index f2fd1142f..2043094fa 100644 --- a/docs/management_ConnectionsManager.js.html +++ b/docs/management_ConnectionsManager.js.html @@ -24,7 +24,7 @@
management/ConnectionsManager.js
diff --git a/docs/management_CustomDomainsManager.js.html b/docs/management_CustomDomainsManager.js.html index cd2419bd0..40dc34621 100644 --- a/docs/management_CustomDomainsManager.js.html +++ b/docs/management_CustomDomainsManager.js.html @@ -24,7 +24,7 @@
management/CustomDomainsManager.js
diff --git a/docs/management_DeviceCredentialsManager.js.html b/docs/management_DeviceCredentialsManager.js.html index f2c945b4f..ff7d7a9d8 100644 --- a/docs/management_DeviceCredentialsManager.js.html +++ b/docs/management_DeviceCredentialsManager.js.html @@ -24,7 +24,7 @@
management/DeviceCredentialsManager.js
diff --git a/docs/management_EmailProviderManager.js.html b/docs/management_EmailProviderManager.js.html index c1f4410ed..062d4c42b 100644 --- a/docs/management_EmailProviderManager.js.html +++ b/docs/management_EmailProviderManager.js.html @@ -24,7 +24,7 @@
management/EmailProviderManager.js
diff --git a/docs/management_EmailTemplatesManager.js.html b/docs/management_EmailTemplatesManager.js.html index 7e4ccd4bd..9ce9a579a 100644 --- a/docs/management_EmailTemplatesManager.js.html +++ b/docs/management_EmailTemplatesManager.js.html @@ -24,7 +24,7 @@
management/EmailTemplatesManager.js
diff --git a/docs/management_GrantsManager.js.html b/docs/management_GrantsManager.js.html index bf324f0d6..a78b358ea 100644 --- a/docs/management_GrantsManager.js.html +++ b/docs/management_GrantsManager.js.html @@ -24,7 +24,7 @@
management/GrantsManager.js
diff --git a/docs/management_GuardianManager.js.html b/docs/management_GuardianManager.js.html index cded592d5..038c30937 100644 --- a/docs/management_GuardianManager.js.html +++ b/docs/management_GuardianManager.js.html @@ -24,7 +24,7 @@
management/GuardianManager.js
diff --git a/docs/management_HooksManager.js.html b/docs/management_HooksManager.js.html index 1e154c771..5014befe2 100644 --- a/docs/management_HooksManager.js.html +++ b/docs/management_HooksManager.js.html @@ -24,7 +24,7 @@
management/HooksManager.js
diff --git a/docs/management_JobsManager.js.html b/docs/management_JobsManager.js.html index 8ec7899d1..a87bd9479 100644 --- a/docs/management_JobsManager.js.html +++ b/docs/management_JobsManager.js.html @@ -24,7 +24,7 @@
management/JobsManager.js
* * @param {Object} data User data object. * @param {String} data.user_id ID of the user to be verified. + * @param {String} [data.organization_id] Organization ID * @param {String} [data.client_id] client_id of the client (application). If no value provided, the global Client ID will be used. * @param {Object} [data.identity] Used to verify secondary, federated, and passwordless-email identities. * @param {String} data.identity.user_id user_id of the identity. @@ -439,7 +440,7 @@management/JobsManager.js
diff --git a/docs/management_LogStreamsManager.js.html b/docs/management_LogStreamsManager.js.html index e521dd0cd..5f3a15c2b 100644 --- a/docs/management_LogStreamsManager.js.html +++ b/docs/management_LogStreamsManager.js.html @@ -24,7 +24,7 @@
management/LogStreamsManager.js
diff --git a/docs/management_LogsManager.js.html b/docs/management_LogsManager.js.html index 8114f63a8..471055d87 100644 --- a/docs/management_LogsManager.js.html +++ b/docs/management_LogsManager.js.html @@ -24,7 +24,7 @@
management/LogsManager.js
diff --git a/docs/management_ManagementTokenProvider.js.html b/docs/management_ManagementTokenProvider.js.html index 9a11c9277..83c405ec1 100644 --- a/docs/management_ManagementTokenProvider.js.html +++ b/docs/management_ManagementTokenProvider.js.html @@ -24,7 +24,7 @@
management/ManagementTokenProvider.js
diff --git a/docs/management_MigrationsManager.js.html b/docs/management_MigrationsManager.js.html index 6df0de382..6738fa8c8 100644 --- a/docs/management_MigrationsManager.js.html +++ b/docs/management_MigrationsManager.js.html @@ -24,7 +24,7 @@
management/MigrationsManager.js
diff --git a/docs/management_OrganizationsManager.js.html b/docs/management_OrganizationsManager.js.html new file mode 100644 index 000000000..293736c39 --- /dev/null +++ b/docs/management_OrganizationsManager.js.html @@ -0,0 +1,903 @@ + + + + + +
management/OrganizationsManager.js
+ + + + + + + +var ArgumentError = require('rest-facade').ArgumentError;
+var utils = require('../utils');
+var Auth0RestClient = require('../Auth0RestClient');
+var RetryRestClient = require('../RetryRestClient');
+
+/**
+ * Simple facade for consuming a REST API endpoint.
+ * @external RestClient
+ * @see https://github.com/ngonzalvez/rest-facade
+ */
+
+/**
+ * @class OrganizationsManager
+ * The organizations class provides a simple abstraction for performing CRUD operations
+ * on Auth0 OrganizationsManager.
+ * @constructor
+ * @memberOf module:management
+ *
+ * @param {Object} options The client options.
+ * @param {String} options.baseUrl The URL of the API.
+ * @param {Object} [options.headers] Headers to be included in all requests.
+ * @param {Object} [options.retry] Retry Policy Config
+ */
+var OrganizationsManager = function(options) {
+ if (options === null || typeof options !== 'object') {
+ throw new ArgumentError('Must provide manager options');
+ }
+
+ if (options.baseUrl === null || options.baseUrl === undefined) {
+ throw new ArgumentError('Must provide a base URL for the API');
+ }
+
+ if ('string' !== typeof options.baseUrl || options.baseUrl.length === 0) {
+ throw new ArgumentError('The provided base URL is invalid');
+ }
+
+ /**
+ * Options object for the Rest Client instance.
+ *
+ * @type {Object}
+ */
+ var clientOptions = {
+ headers: options.headers,
+ query: { repeatParams: false }
+ };
+
+ /**
+ * Provides an abstraction layer for performing CRUD operations on
+ * {@link https://auth0.com/docs/api/v2}.
+ *
+ * @type {external:RestClient}
+ */
+ var auth0RestClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/:id',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.organizations = new RetryRestClient(auth0RestClient, options.retry);
+
+ var connectionsInRoleClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/:id/enabled_connections/:connection_id',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.connections = new RetryRestClient(connectionsInRoleClient, options.retry);
+
+ var membersClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/:id/members/:user_id',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.members = new RetryRestClient(membersClient, options.retry);
+
+ var invitationClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/:id/invitations/:invitation_id',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.invitations = new RetryRestClient(invitationClient, options.retry);
+
+ var rolesClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/:id/members/:user_id/roles',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.roles = new RetryRestClient(rolesClient, options.retry);
+
+ var organizationByNameClient = new Auth0RestClient(
+ options.baseUrl + '/organizations/name/:name',
+ clientOptions,
+ options.tokenProvider
+ );
+ this.organizationsByName = new RetryRestClient(organizationByNameClient, options.retry);
+};
+
+/**
+ * Create a new organization.
+ *
+ * @method create
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * management.organizations.create(data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ *
+ * // Organization created.
+ * });
+ *
+ * @param {Object} data Organization data object.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'create', 'organizations.create');
+
+/**
+ * Get all organizations.
+ *
+ * @method getAll
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example <caption>
+ * This method takes an optional object as first argument that may be used to
+ * specify pagination settings. If pagination options are not present,
+ * the first page of a limited number of results will be returned.
+ * </caption>
+ *
+ * // Pagination settings.
+ * var params = {
+ * per_page: 10,
+ * page: 0
+ * };
+ *
+ * management.organizations.getAll(params, function (err, organizations) {
+ * console.log(organizations.length);
+ * });
+ *
+ * @param {Object} [params] Organizations parameters.
+ * @param {Number} [params.per_page] Number of results per page.
+ * @param {Number} [params.page] Page number, zero indexed.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'getAll', 'organizations.getAll');
+
+/**
+ * Get an Auth0 organization.
+ *
+ * @method getByID
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * management.organizations.getByID({ id: ORGANIZATION_ID }, function (err, role) {
+ * if (err) {
+ * // Handle error.
+ * }
+ *
+ * console.log(organization);
+ * });
+ *
+ * @param {Object} params Organization parameters.
+ * @param {String} params.id Organization ID.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'getByID', 'organizations.get');
+
+/**
+ * Get an Auth0 organization.
+ *
+ * @method getByName
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * management.organizations.getByName({ name: ORGANIZATION_NAME}, function (err, role) {
+ * if (err) {
+ * // Handle error.
+ * }
+ *
+ * console.log(organization);
+ * });
+ *
+ * @param {Object} params Organization parameters.
+ * @param {String} params.name Organization name.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'getByName', 'organizationsByName.get');
+
+/**
+ * Update an existing organization.
+ *
+ * @method update
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var data = { display_name: 'New name' };
+ * var params = { id: ORGANIZATION_ID };
+ *
+ * management.organizations.update(params, data, function (err, organization) {
+ * if (err) {
+ * // Handle error.
+ * }
+ *
+ * console.log(organization.name); // 'New name'
+ * });
+ *
+ * @param {Object} params Organization parameters.
+ * @param {String} params.id Organization ID.
+ * @param {Object} data Updated organization data.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'update', 'organizations.patch');
+
+/**
+ * Delete an existing organization.
+ *
+ * @method delete
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * management.organizations.delete({ id: ORGANIZATION_ID }, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ *
+ * // Organization deleted.
+ * });
+ *
+ * @param {Object} params Organization parameters.
+ * @param {String} params.id Organization ID.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+utils.wrapPropertyMethod(OrganizationsManager, 'delete', 'organizations.delete');
+
+/**
+ **** Organization Connections
+ */
+
+/**
+ * Get Enabled Connections in a Organization
+ *
+ * @method getEnabledConnections
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID'}
+ * @example <caption>
+ * This method takes an organization ID and returns the enabled connections in an Organization
+ * </caption>
+ *
+ * management.organizations.getEnabledConnections( {id : 'ORGANIZATION_ID'}, function (err, enabled_connections) {
+ * console.log(enabled_connections);
+ * });
+ *
+ * @param {String} [organization_id] Organization ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getEnabledConnections = function(params, callback) {
+ return this.connections.getAll(params, callback);
+};
+
+/**
+ * Get Enabled Connection in a Organization
+ *
+ * @method getEnabledConnection
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID', connection_id: 'CONNECTION_ID'}
+ * @example <caption>
+ * This methods takes the organization ID and connection ID and returns the enabled connection
+ * </caption>
+ *
+ * management.organizations.getEnabledConnections( {id : 'ORGANIZATION_ID', connection_id: 'CONNECTION_ID'}, function (err, enabled_connection) {
+ * console.log(enabled_connection);
+ * });
+ *
+ * @param {String} [organization_id] Organization ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getEnabledConnection = function(params, callback) {
+ return this.connections.get(params, callback);
+};
+
+/**
+ * Add an enabled connection for an organization
+ *
+ * @method addEnabledConnection
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID'};
+ * var data = { "connection_id" : "CONNECTION_ID", assign_membership_on_login: false };
+ *
+ * management.organizations.addEnabledConnection(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {Object} data enable connection data
+ * @param {String} data.connection_id connection ID to enable
+ * @param {Boolean} data.assign_membership_on_login flag to allow assign membership on login
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+
+OrganizationsManager.prototype.addEnabledConnection = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.connections.create(params, data, cb);
+ }
+
+ return this.connections.create(params, data);
+};
+
+/**
+ * Remove an enabled connection from an organization
+ *
+ * @method removeEnabledConnection
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID', connection_id: 'CONNECTION_ID' };
+ *
+ * management.organizations.removeEnabledConnection(params, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.connection_id ID of the Connection.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+
+OrganizationsManager.prototype.removeEnabledConnection = function(params, cb) {
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.connection_id) {
+ throw new ArgumentError('The connection ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.connection_id !== 'string') {
+ throw new ArgumentError('The connection ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.connections.delete(params, {}, cb);
+ }
+
+ return this.connections.delete(params, {});
+};
+
+/**
+ * Update an enabled connection from an organization
+ *
+ * @method updateEnabledConnection
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID', connection_id: 'CONNECTION_ID' };
+ * var data = { assign_membership_on_login: true };
+ *
+ * management.organizations.updateEnabledConnection(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.connection_id ID of the Connection.
+ * @param {Object} data Updated connection.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+
+OrganizationsManager.prototype.updateEnabledConnection = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.connection_id) {
+ throw new ArgumentError('The connection ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.connection_id !== 'string') {
+ throw new ArgumentError('The connection ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.connections.patch(params, data, cb);
+ }
+
+ return this.connections.patch(params, data);
+};
+
+/**
+ **** Organization Members
+ */
+
+/**
+ * Get Members in a Organization
+ *
+ * @method getMembers
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID'}
+ * @example <caption>
+ * This method takes an organization ID and returns the members in an Organization
+ * </caption>
+ *
+ * management.organizations.getMembers( {id : 'ORGANIZATION_ID'}, function (err, members) {
+ * console.log(members);
+ * });
+ *
+ * @param {String} [params.id] Organization ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getMembers = function(params, callback) {
+ return this.members.getAll(params, callback);
+};
+
+/**
+ * Add members in an organization
+ *
+ * @method addMembers
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID'};
+ * var data = { members: [ 'USER_ID1', 'USER_ID2' ] }
+ * management.organizations.addMembers(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {Object} data add members data
+ * @param {Array} data.members Array of user IDs
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.addMembers = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.members.create(params, data, cb);
+ }
+
+ return this.members.create(params, data);
+};
+
+/**
+ * Remove members from an organization
+ *
+ * @method removeMembers
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID' };
+ * var data = { members: [ 'USER_ID1', 'USER_ID2' ] }
+ *
+ * management.organizations.removeMembers(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {Object} data add members data
+ * @param {Array} data.members Array of user IDs
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.removeMembers = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.members.delete(params, data, cb);
+ }
+
+ return this.members.delete(params, data);
+};
+
+/**
+ **** Organization Invites
+ */
+
+/**
+ * Get Invites in a Organization
+ *
+ * @method getInvitations
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID'}
+ * @example <caption>
+ * This method takes an organization ID and returns the invites in an Organization
+ * </caption>
+ *
+ * management.organizations.getInvitations( {id : 'ORGANIZATION_ID'}, function (err, invites) {
+ * console.log(invites);
+ * });
+ *
+ * @param {String} [params.id] Organization ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getInvitations = function(params, callback) {
+ return this.invitations.getAll(params, callback);
+};
+
+/**
+ * Get an Invitation in a Organization
+ *
+ * @method getInvitation
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID', invitation_id: 'INVITATION_ID'}
+ * @example <caption>
+ * This methods takes the organization ID and user ID and returns the invitation
+ * </caption>
+ *
+ * management.organizations.getInvitation({id : 'ORGANIZATION_ID', invitation_id: 'INVITATION_ID'}, function (err, invite) {
+ * console.log(invite);
+ * });
+ *
+ * @param {String} [organization_id] Organization ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getInvitation = function(params, callback) {
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.invitation_id) {
+ throw new ArgumentError('The invitation ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.invitation_id !== 'string') {
+ throw new ArgumentError('The invitation ID has to be a string');
+ }
+
+ return this.invitations.get(params, callback);
+};
+
+/**
+ * Create an invitation in an organization
+ *
+ * @method createInvitation
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID'};
+ * var data = {
+ * client_id: CLIENT_ID,
+ * invitee: { email: 'invitee@example.com' },
+ * inviter: { name: 'John Doe' }
+ * };
+ *
+ * management.organizations.createInvitation(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {Array} data Invitation data
+ * @param {Object} data.inviter The person who is sending the invite.
+ * @param {String} data.inviter.name Name of the person who is sending the invite
+ * @param {Object} data.invitee Invitee to whom invitation is intended for
+ * @param {Object} data.invitee.email Email of the invitee to whom invitation is intended for
+ * @param {String} data.client_id Auth0 client used to resolve the default application login URI. This endpoint must expect &invitation=... and &organization=... parameters (added by API2) to continue the flow with /authorize. If client_id does not have configured login URI, use the tenant level default login route if configured, otherwise return 400
+ * @param {String} [data.connection_id] Force user to authenticate against a specific identity provider.
+ * @param {Object} [data.app_metadata] Application metadata to be assigned to the user after accept the invitation.
+ * @param {Object} [data.user_metadata] User metadata to be assigned to the user after accept the invitation.
+ * @param {Array} [data.roles] List of roles to be assigned to the user
+ * @param {Number} [data.ttl_sec] Number of seconds for which the invitation is valid before expiration. If unspecified or set to 0, this value defaults to 604800 seconds (7 days). Upper limit on ttl_sec is 30 days.
+ * @param {Boolean} [data.send_invitation_email] Whether the user will receive an invitation email (true) or no email (false). Default is true.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.createInvitation = function(params, data, cb) {
+ data = data || [];
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.invitations.create(params, data, cb);
+ }
+
+ return this.invitations.create(params, data);
+};
+
+/**
+ * Delete an invitation from an organization
+ *
+ * @method deleteInvitation
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID', invitation_id: 'INVITATION_ID };
+ *
+ * management.organizations.deleteInvitation(params, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.invitation_id Invitation ID
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.deleteInvitation = function(params, cb) {
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.invitation_id) {
+ throw new ArgumentError('The invitation ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.invitation_id !== 'string') {
+ throw new ArgumentError('The invitation ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.invitations.delete(params, {}, cb);
+ }
+
+ return this.invitations.delete(params, {});
+};
+
+/**
+ **** Organization Roles Membership
+ */
+
+/**
+ * Get Roles from a Member in a Organization
+ *
+ * @method getMemberRoles
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID', user_id: 'user_id'}
+ * @example <caption>
+ * This methods takes the organization ID and user ID and returns the roles
+ * </caption>
+ *
+ * management.organizations.getMemberRoles( {id : 'ORGANIZATION_ID', user_id: 'user_id'}, function (err, roles) {
+ * console.log(roles);
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.user_id ID of the user.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.getMemberRoles = function(params, callback) {
+ return this.roles.getAll(params, callback);
+};
+
+/**
+ * Add a Role to a Member in an organization
+ *
+ * @method addMemberRoles
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = {id : 'ORGANIZATION_ID', user_id: 'user_id'};
+ * var data = { roles: ["ROLE_ID_1", "ROLE_ID_2"]}
+ *
+ * management.organizations.addMemberRoles(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.user_id ID of the user.
+ * @param {Object} data Add member roles data.
+ * @param {Array} data.roles Array of role IDs.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.addMemberRoles = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.user_id) {
+ throw new ArgumentError('The user ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.user_id !== 'string') {
+ throw new ArgumentError('The user ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.roles.create(params, data, cb);
+ }
+
+ return this.roles.create(params, data);
+};
+
+/**
+ * Remove Roles from a Member of an organization
+ *
+ * @method removeMemberRoles
+ * @memberOf module:management.OrganizationsManager.prototype
+ *
+ * @example
+ * var params = { id :'ORGANIZATION_ID', user_id: 'USER_ID };
+ * var data = { roles: ["ROLE_ID_1", "ROLE_ID_2"]}
+ *
+ * management.organizations.removeMemberRoles(params, data, function (err) {
+ * if (err) {
+ * // Handle error.
+ * }
+ * });
+ *
+ * @param {String} params.id ID of the Organization.
+ * @param {String} params.user_id Id of the User
+ * @param {Object} data Remove member roles data.
+ * @param {Array} data.roles Array of role IDs.
+ * @param {Function} [cb] Callback function.
+ *
+ * @return {Promise|undefined}
+ */
+OrganizationsManager.prototype.removeMemberRoles = function(params, data, cb) {
+ data = data || {};
+ params = params || {};
+
+ if (!params.id) {
+ throw new ArgumentError('The organization ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.id !== 'string') {
+ throw new ArgumentError('The organization ID has to be a string');
+ }
+
+ if (!params.user_id) {
+ throw new ArgumentError('The user ID passed in params cannot be null or undefined');
+ }
+ if (typeof params.user_id !== 'string') {
+ throw new ArgumentError('The user ID has to be a string');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.roles.delete(params, data, cb);
+ }
+
+ return this.roles.delete(params, data);
+};
+
+module.exports = OrganizationsManager;
+
+ + + + + + + + diff --git a/docs/management_PromptsManager.js.html b/docs/management_PromptsManager.js.html index 522676d07..e773de527 100644 --- a/docs/management_PromptsManager.js.html +++ b/docs/management_PromptsManager.js.html @@ -24,7 +24,7 @@
management/PromptsManager.js
diff --git a/docs/management_ResourceServersManager.js.html b/docs/management_ResourceServersManager.js.html index 621fef7d2..dd43f748f 100644 --- a/docs/management_ResourceServersManager.js.html +++ b/docs/management_ResourceServersManager.js.html @@ -24,7 +24,7 @@
management/ResourceServersManager.js
diff --git a/docs/management_RolesManager.js.html b/docs/management_RolesManager.js.html index 20c9d9853..183e45eb5 100644 --- a/docs/management_RolesManager.js.html +++ b/docs/management_RolesManager.js.html @@ -24,7 +24,7 @@
management/RolesManager.js
* * @example * var params = { - * roleId: 'ROLE_ID' + * roleId: 'ROLE_ID', * per_page: 50, * page: 0 * }; * * @example <caption> - * This method takes a roleId and returns all users within that role + * This method takes a roleId and returns all users within that role. Supports offset (page, per_page) and checkpoint pagination (from, take). You must use checkpoint pagination to retrieve beyond the first 1000 records. * </caption> * * management.roles.getUsers(params, function (err, users) { * console.log(users); * }); * - * @param {String} [roleId] Id of the role + * @param {String} [roleId] Id of the role * @param {Number} [params.per_page] Number of results per page. * @param {Number} [params.page] Page number, zero indexed. + * @param {String} [params.from] Optional id from which to start selection. + * @param {Number} [params.take] The total amount of entries to retrieve when using the from parameter. Defaults to 50. * @param {Function} [cb] Callback function. * * @return {Promise|undefined} @@ -460,7 +462,7 @@management/RolesManager.js
diff --git a/docs/management_RulesConfigsManager.js.html b/docs/management_RulesConfigsManager.js.html index 79ff24aac..73eba8455 100644 --- a/docs/management_RulesConfigsManager.js.html +++ b/docs/management_RulesConfigsManager.js.html @@ -24,7 +24,7 @@
management/RulesConfigsManager.js
diff --git a/docs/management_RulesManager.js.html b/docs/management_RulesManager.js.html index cdb150601..89b4afda2 100644 --- a/docs/management_RulesManager.js.html +++ b/docs/management_RulesManager.js.html @@ -24,7 +24,7 @@
management/RulesManager.js
diff --git a/docs/management_StatsManager.js.html b/docs/management_StatsManager.js.html index 1461ba143..60f468822 100644 --- a/docs/management_StatsManager.js.html +++ b/docs/management_StatsManager.js.html @@ -24,7 +24,7 @@
management/StatsManager.js
diff --git a/docs/management_TenantManager.js.html b/docs/management_TenantManager.js.html index 05b601aa2..27ba4bf71 100644 --- a/docs/management_TenantManager.js.html +++ b/docs/management_TenantManager.js.html @@ -24,7 +24,7 @@
management/TenantManager.js
diff --git a/docs/management_TicketsManager.js.html b/docs/management_TicketsManager.js.html index 0de81d33b..5f8b411e8 100644 --- a/docs/management_TicketsManager.js.html +++ b/docs/management_TicketsManager.js.html @@ -24,7 +24,7 @@
management/TicketsManager.js
* } * }); * + * @param {Object} data + * @param {String} [data.result_url] URL the user will be redirected to once ticket is used. + * @param {String} [data.user_id] user_id for whom the ticket should be created. (Conflicts with: connection_id, email) + * @param {String} [data.client_id] ID of the client. + * @param {String} [data.organization_id] ID of the organization. + * @param {String} [data.connection_id] ID of the connection. + * @param {Integer} [data.ttl_sec] Number of seconds for which the ticket is valid before expiration. + * @param {String} [data.email] Email of the user. (Requires: connection_id) + * @param {Boolean} [data.mark_email_as_verified] Whether to set the email_verified attribute to true (true) or whether it should not be updated (false). + * @param {Boolean} [data.includeEmailInRedirect] Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). * @param {Function} [cb] Callback function. * @return {Promise} */ @@ -147,6 +157,8 @@management/TicketsManager.js
* @param {Object} [data.identity] Used to verify secondary, federated, and passwordless-email identities. * @param {String} data.identity.user_id user_id of the identity. * @param {String} data.identity.provider provider of the identity. + * @param {String} [data.client_id] client ID. + * @param {String} [data.organization_id] organization ID. * @param {Function} [cb] Callback function. * @return {Promise} */ @@ -174,7 +186,7 @@management/TicketsManager.js
diff --git a/docs/management_UserBlocksManager.js.html b/docs/management_UserBlocksManager.js.html index 3e3c00bb8..fd447964d 100644 --- a/docs/management_UserBlocksManager.js.html +++ b/docs/management_UserBlocksManager.js.html @@ -24,7 +24,7 @@
management/UserBlocksManager.js
diff --git a/docs/management_UsersManager.js.html b/docs/management_UsersManager.js.html index e9bfbc14c..ea46e6356 100644 --- a/docs/management_UsersManager.js.html +++ b/docs/management_UsersManager.js.html @@ -24,7 +24,7 @@
management/UsersManager.js
options.tokenProvider ); this.permissions = new RetryRestClient(userPermissionsClient, options.retry); + + var organizationsClient = new Auth0RestClient( + options.baseUrl + '/users/:id/organizations', + clientOptions, + options.tokenProvider + ); + this.organizations = new RetryRestClient(organizationsClient, options.retry); }; /** @@ -970,6 +977,27 @@management/UsersManager.js
return this.permissions.delete(query, data); }; +/** + * Get a list of organizations for a user. + * + * @method getUserOrganizations + * @memberOf module:management.UsersManager.prototype + * + * @example + * management.users.getUserOrganizations({ id: USER_ID }, function (err, orgs) { + * console.log(orgs); + * }); + * + * @param {Object} data The user data object. + * @param {String} data.id The user id. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +UsersManager.prototype.getUserOrganizations = function() { + return this.organizations.getAll.apply(this.organizations, arguments); +}; + module.exports = UsersManager; @@ -983,7 +1011,7 @@management/UsersManager.js
diff --git a/docs/management_index.js.html b/docs/management_index.js.html index 7d0a1b91f..bf04dec95 100644 --- a/docs/management_index.js.html +++ b/docs/management_index.js.html @@ -24,7 +24,7 @@
management/index.js
var BrandingManager = require('./BrandingManager'); var MigrationsManager = require('./MigrationsManager'); var PromptsManager = require('./PromptsManager'); +var OrganizationsManager = require('./OrganizationsManager'); var BASE_URL_FORMAT = 'https://%s/api/v2'; var MANAGEMENT_API_AUD_FORMAT = 'https://%s/api/v2/'; @@ -391,6 +392,13 @@management/index.js
* @type {PromptsManager} */ this.prompts = new PromptsManager(managerOptions); + + /** + * Organizations Manager + * + * @type {OrganizationsManager} + */ + this.organizations = new OrganizationsManager(managerOptions); }; /** @@ -3385,22 +3393,24 @@management/index.js
* * @example * var params = { - * id: 'ROLE_ID' + * id: 'ROLE_ID', * per_page: 50, * page: 0 * }; * * @example <caption> - * This method takes a roleId and returns all users within that role + * This method takes a roleId and returns all users within that role. Supports offset (page, per_page) and checkpoint pagination (from, take). You must use checkpoint pagination to retrieve beyond the first 1000 records. * </caption> * * management.getUsersInRole(params, function (err, users) { * console.log(users); * }); * - * @param {String} [id] Id of the role + * @param {String} [id] Id of the role * @param {Number} [params.per_page] Number of results per page. * @param {Number} [params.page] Page number, zero indexed. + * @param {String} [params.from] Optional id from which to start selection. + * @param {Number} [params.take] The total amount of entries to retrieve when using the from parameter. Defaults to 50. * @param {Function} [cb] Callback function. * * @return {Promise|undefined} @@ -3923,7 +3933,7 @@management/index.js
diff --git a/docs/module-auth.AuthenticationClient.html b/docs/module-auth.AuthenticationClient.html index b8240cb74..509fc25d7 100644 --- a/docs/module-auth.AuthenticationClient.html +++ b/docs/module-auth.AuthenticationClient.html @@ -24,7 +24,7 @@
changeP
Source:
get
getProfile<
password
refreshTo
Parameters:
- password
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Verification code.
-
-
-
-
-
-
-
-
- target
+ otp
@@ -4038,7 +4012,7 @@ Parameters:
- Target client ID.
+ Verification code. Use this instead of password
to use the /oauth/token
endpoint.
@@ -4047,7 +4021,7 @@ Parameters:
- grant_type
+ password
@@ -4064,7 +4038,7 @@ Parameters:
- Grant type.
+ Verification code. Use this instead of otp
to use the /oauth/ro
endpoint.
@@ -4160,9 +4134,28 @@ Returns:
Examples
+
+ var data = {
+ username: '{PHONE_NUMBER}'
+ otp: '{VERIFICATION_CODE}'
+};
+
+auth0.verifySMSCode(data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+});
+
+
var data = {
@@ -4207,7 +4200,7 @@ Examples
diff --git a/docs/module-auth.DatabaseAuthenticator.html b/docs/module-auth.DatabaseAuthenticator.html
index 75a7148fa..df32d6744 100644
--- a/docs/module-auth.DatabaseAuthenticator.html
+++ b/docs/module-auth.DatabaseAuthenticator.html
@@ -24,7 +24,7 @@
@@ -1765,7 +1765,7 @@ Example
diff --git a/docs/module-auth.OAUthWithIDTokenValidation.html b/docs/module-auth.OAUthWithIDTokenValidation.html
index 1f84d9e13..63c047069 100644
--- a/docs/module-auth.OAUthWithIDTokenValidation.html
+++ b/docs/module-auth.OAUthWithIDTokenValidation.html
@@ -24,7 +24,7 @@
@@ -450,7 +450,7 @@ Parameters:
diff --git a/docs/module-auth.OAuthAuthenticator.html b/docs/module-auth.OAuthAuthenticator.html
index 7667e9be9..230c0ed9a 100644
--- a/docs/module-auth.OAuthAuthenticator.html
+++ b/docs/module-auth.OAuthAuthenticator.html
@@ -24,7 +24,7 @@
@@ -493,7 +493,7 @@ Methods
- authorizationCodeGrant(data) → {Promise|undefined}
+ authorizationCodeGrant(options) → {Promise|undefined}
@@ -580,7 +580,7 @@ Parameters:
- data
+ options
@@ -599,6 +599,49 @@ Parameters:
Authorization code payload
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ organization
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
@@ -606,7 +649,7 @@ Parameters:
- userData.code
+ code
@@ -632,7 +675,7 @@ Parameters:
- userData.redirect_uri
+ redirect_uri
@@ -658,6 +701,14 @@ Parameters:
+
+
+
+
+
+
+
+
@@ -710,14 +761,15 @@ Example
.
- var data = {
+ var options = {
code: '{CODE}',
redirect_uri: '{REDIRECT_URI}',
client_id: '{CLIENT_ID}', // Optional field.
client_secret: '{CLIENT_SECRET}', // Optional field.
+ organization: '{ORGANIZATION_ID}' // Optiional field.
};
-auth0.oauth.authorizationCodeGrant(data, function (err, userData) {
+auth0.oauth.authorizationCodeGrant(options, function (err, userData) {
if (err) {
// Handle error.
}
@@ -2050,7 +2102,7 @@ Returns:
diff --git a/docs/module-auth.PasswordlessAuthenticator.html b/docs/module-auth.PasswordlessAuthenticator.html
index af41ab7e6..1368a04bc 100644
--- a/docs/module-auth.PasswordlessAuthenticator.html
+++ b/docs/module-auth.PasswordlessAuthenticator.html
@@ -24,7 +24,7 @@
@@ -491,7 +491,7 @@ sendEmailSource:
sendSMSSource:
Parameters:
- otp
+ username
@@ -1417,7 +1417,7 @@ Parameters:
- The user's verification code.
+ The user's phone number if realm=sms, or the user's email if realm=email
@@ -1426,7 +1426,7 @@ Parameters:
- realm
+ otp
@@ -1441,8 +1441,6 @@ Parameters:
- <optional>
-
@@ -1453,13 +1451,11 @@ Parameters:
- sms
-
- Realm string: "sms" or "email".
+ The user's verification code. Required
@@ -1468,7 +1464,7 @@ Parameters:
- username
+ realm
@@ -1483,6 +1479,8 @@ Parameters:
+ <optional>
+
@@ -1493,11 +1491,13 @@ Parameters:
+ sms
+
- The user's phone number if realm=sms, or the user's email if realm=email
+ Realm string: "sms" or "email".
@@ -1521,6 +1521,8 @@ Parameters:
+ <optional>
+
@@ -1535,7 +1537,7 @@ Parameters:
- [DEPRECATED] Password.
+ [DEPRECATED] Password required if using legacy /oauth/ro endpoint
@@ -1772,14 +1774,16 @@ Returns:
Examples
var data = {
- username: '{PHONE_NUMBER}',
- password: '{VERIFICATION_CODE}'
+ username: '{PHONE_NUMBER OR EMAIL}',
+ otp: '{VERIFICATION_CODE}',
+ realm: '{sms or email}' // OPTIONAL DEFAULTS TO SMS
};
auth0.passwordless.signIn(data, function (err) {
@@ -1789,12 +1793,27 @@ Examples
});
+
+ {
+ id_token: String,
+ access_token: String,
+ token_type: String
+}
+
+
var data = {
username: '{PHONE_NUMBER}',
- otp: '{VERIFICATION_CODE}'
+ password: '{VERIFICATION_CODE}'
};
auth0.passwordless.signIn(data, function (err) {
@@ -1803,16 +1822,6 @@ Examples
}
});
-
-
- {
- id_token: String,
- access_token: String,
- token_type: String
-}
-
@@ -1834,7 +1843,7 @@ Examples
diff --git a/docs/module-auth.TokensManager.html b/docs/module-auth.TokensManager.html
index 4fac89847..88d23d9bd 100644
--- a/docs/module-auth.TokensManager.html
+++ b/docs/module-auth.TokensManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
TokensManager
- Provides methods for getting token data and exchanging tokens.
+ TokensManager
+Provides methods for getting token data and exchanging tokens.
@@ -372,6 +373,985 @@ Parameters:
+ Methods
+
+
+
+
+
+
+
+ getDelegationToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Exchange the token of the logged in user with a token that is valid to call
+the API (signed with the API secret).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ refresh_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ target
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ api_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The API to be used (aws, auth0, etc).
+
+
+
+
+
+
+
+
+ grant_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Grant type (password, jwt, etc).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ var data = {
+ id_token: '{ID_TOKEN}',
+ api_type: 'app',
+ target: '{TARGET}',
+ grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer'
+};
+
+auth0.tokens.getDelegationToken(data, function (err, token) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(token);
+});
+
+
+
+
+
+
+
+
+
+
+ getInfo(idToken, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Given an ID token get the user profile linked to it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ idToken
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Method callback.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ auth0.tokens.getInfo(token, function (err, tokenInfo) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(tokenInfo);
+});
+
+
+
+
+
+
+
+
+
+
+ revokeRefreshToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Proactively revoke an issued refresh token.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ client_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ client_secret
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client secret.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ * var data = {
+ token: '{REFRESH_TOKEN}'
+};
+
+auth0.tokens.revokeRefreshToken(data, function (err, _) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Do stuff.
+});
+
+
+
+
+
+
@@ -388,7 +1368,7 @@ Parameters:
diff --git a/docs/module-auth.UsersManager.html b/docs/module-auth.UsersManager.html
index e2b175178..c79000d40 100644
--- a/docs/module-auth.UsersManager.html
+++ b/docs/module-auth.UsersManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
UsersManager
- Provides methods for getting user information and impersonating users.
+ UsersManager
+Provides methods for getting user information and impersonating users.
@@ -1009,7 +1010,7 @@ Example
diff --git a/docs/module-auth.html b/docs/module-auth.html
index 80b90e83f..9abea4ea1 100644
--- a/docs/module-auth.html
+++ b/docs/module-auth.html
@@ -24,7 +24,7 @@
@@ -108,7 +108,7 @@ Classes
diff --git a/docs/module-errors.html b/docs/module-errors.html
index 60ed46bf7..998b07a27 100644
--- a/docs/module-errors.html
+++ b/docs/module-errors.html
@@ -24,7 +24,7 @@
@@ -254,7 +254,7 @@ (st
diff --git a/docs/module-management.BlacklistedTokensManager.html b/docs/module-management.BlacklistedTokensManager.html
index b82c48fad..6ba3c630c 100644
--- a/docs/module-management.BlacklistedTokensManager.html
+++ b/docs/module-management.BlacklistedTokensManager.html
@@ -24,7 +24,7 @@
@@ -991,7 +991,7 @@ Example
diff --git a/docs/module-management.BrandingManager.html b/docs/module-management.BrandingManager.html
index a63d23cf0..2522fd910 100644
--- a/docs/module-management.BrandingManager.html
+++ b/docs/module-management.BrandingManager.html
@@ -24,7 +24,7 @@
@@ -1770,7 +1770,7 @@ Example
diff --git a/docs/module-management.ClientGrantsManager.html b/docs/module-management.ClientGrantsManager.html
index f7671a159..53515c8ad 100644
--- a/docs/module-management.ClientGrantsManager.html
+++ b/docs/module-management.ClientGrantsManager.html
@@ -24,7 +24,7 @@
@@ -1636,7 +1636,7 @@ Example
diff --git a/docs/module-management.ClientsManager.html b/docs/module-management.ClientsManager.html
index 7fee17ad6..9f21a56b2 100644
--- a/docs/module-management.ClientsManager.html
+++ b/docs/module-management.ClientsManager.html
@@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@ Example
diff --git a/docs/module-management.ConnectionsManager.html b/docs/module-management.ConnectionsManager.html
index 90126eaf0..6e271162b 100644
--- a/docs/module-management.ConnectionsManager.html
+++ b/docs/module-management.ConnectionsManager.html
@@ -24,7 +24,7 @@
@@ -2269,7 +2269,7 @@ Example
diff --git a/docs/module-management.CustomDomainsManager.html b/docs/module-management.CustomDomainsManager.html
index cffe008c4..29f8fe58d 100644
--- a/docs/module-management.CustomDomainsManager.html
+++ b/docs/module-management.CustomDomainsManager.html
@@ -24,7 +24,7 @@
@@ -1731,7 +1731,7 @@ Example
diff --git a/docs/module-management.DeviceCredentialsManager.html b/docs/module-management.DeviceCredentialsManager.html
index a9fa3e060..065f7baad 100644
--- a/docs/module-management.DeviceCredentialsManager.html
+++ b/docs/module-management.DeviceCredentialsManager.html
@@ -24,7 +24,7 @@
@@ -1215,7 +1215,7 @@ Example
diff --git a/docs/module-management.EmailProviderManager.html b/docs/module-management.EmailProviderManager.html
index 4f7af385e..257926395 100644
--- a/docs/module-management.EmailProviderManager.html
+++ b/docs/module-management.EmailProviderManager.html
@@ -24,7 +24,7 @@
@@ -1480,7 +1480,7 @@ Example
diff --git a/docs/module-management.EmailTemplatesManager.html b/docs/module-management.EmailTemplatesManager.html
index 4e8b17ab0..284faee7f 100644
--- a/docs/module-management.EmailTemplatesManager.html
+++ b/docs/module-management.EmailTemplatesManager.html
@@ -24,7 +24,7 @@
@@ -1304,7 +1304,7 @@ Example
diff --git a/docs/module-management.GrantsManager.html b/docs/module-management.GrantsManager.html
index 603acc8db..9a03d5727 100644
--- a/docs/module-management.GrantsManager.html
+++ b/docs/module-management.GrantsManager.html
@@ -24,7 +24,7 @@
@@ -842,7 +842,7 @@ deleteGran
Example
diff --git a/docs/module-management.GuardianManager.html b/docs/module-management.GuardianManager.html
index 6f3b2af40..73ee47b07 100644
--- a/docs/module-management.GuardianManager.html
+++ b/docs/module-management.GuardianManager.html
@@ -24,7 +24,7 @@
@@ -4920,7 +4920,7 @@ Example
diff --git a/docs/module-management.HooksManager.html b/docs/module-management.HooksManager.html
index c856e6fff..d709e4ec8 100644
--- a/docs/module-management.HooksManager.html
+++ b/docs/module-management.HooksManager.html
@@ -24,7 +24,7 @@
@@ -3099,7 +3099,7 @@ Example
diff --git a/docs/module-management.JobsManager.html b/docs/module-management.JobsManager.html
index 518826921..c7e81e430 100644
--- a/docs/module-management.JobsManager.html
+++ b/docs/module-management.JobsManager.html
@@ -24,7 +24,7 @@
@@ -890,7 +890,7 @@ errorsSource:
Parameters:
+
+
+ organization_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
+
+
+
+
+
client_id
@@ -3109,7 +3145,7 @@ Example
diff --git a/docs/module-management.LogStreamsManager.html b/docs/module-management.LogStreamsManager.html
index 228787292..4a5a59e7e 100644
--- a/docs/module-management.LogStreamsManager.html
+++ b/docs/module-management.LogStreamsManager.html
@@ -24,7 +24,7 @@
@@ -1763,7 +1763,7 @@ Example
diff --git a/docs/module-management.LogsManager.html b/docs/module-management.LogsManager.html
index f7a3452c2..048122fa6 100644
--- a/docs/module-management.LogsManager.html
+++ b/docs/module-management.LogsManager.html
@@ -24,7 +24,7 @@
@@ -1286,7 +1286,7 @@ Example
diff --git a/docs/module-management.ManagementClient.html b/docs/module-management.ManagementClient.html
index 0d6dd77c3..16bf56466 100644
--- a/docs/module-management.ManagementClient.html
+++ b/docs/module-management.ManagementClient.html
@@ -24,7 +24,7 @@
@@ -106,7 +106,7 @@ new M
blac
brandingSource:
clientGra
clientsSource:
connection
customDo
devi
emailPro
emailTe
grantsSource:
guardianSource:
hooksSource:
jobsSource:
logsSource:
logStreams<
migrations<
Type:
+
+
+
+
+
+organizations :OrganizationsManager
+
+
+
+
+
+ Organizations Manager
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
@@ -1958,7 +2032,7 @@ promptsSource:
resour
rolesSource:
rulesSource:
rulesConf
statsSource:
tenantSource:
ticketsSource:
userBlocks<
usersSource:
addHookS
a
Source:
assi
assi
blackli
Source:
createCli
crea
creat
cre
cr
Source:
Source:
createHook<
create
c
createRole<
createRule<
createUser<
deleteA
Source:
deleteCli
dele
delet
del
Source:
de
Source:
deleteHook<
delete
d
deleteRole<
deleteRule<
dele
deleteUser<
exportUser
getAcce
ge
g
ge
Source:
getClientSource:
getCli
getClients<
getConne
getConn
getCus
getCu
getDaily
g
getEm
getEm
getGrantsSource:
Source:
Source:
get
Source:
Source:
Source:
ge
getHookSource:
getHooksSource:
getHook
getJobSource:
getLogSource:
getLogsSource:
getLogStr
getMigra
g
get
getR
get
getRoleSource:
getRolesSource:
getRuleSource:
getRulesSource:
getRul
getT
getUserSource:
getUserB
Source:
getUserLog
get
getUserRo
getUsersSource:
getUse
getUser
Parameters:
+
+
+ params.from
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Optional id from which to start selection.
+
+
+
+
+
+
+
+
+ params.take
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ The total amount of entries to retrieve when using the from parameter. Defaults to 50.
+
+
+
+
+
+
cb
@@ -27444,13 +27590,13 @@ Returns:
Examples
var params = {
- id: 'ROLE_ID'
+ id: 'ROLE_ID',
per_page: 50,
page: 0
};
management.getUsersInRole(params, function (err, users) {
@@ -27511,7 +27657,7 @@ importUser
importU
Source:
linkUsersSource:
Source:
remo
Source:
Source:
re
Source:
setRule
unblockUse
unblockUse
unlinkUser
upda
Source:
updateCli
upda
updat
up
u
u
get
getProfile<
password
refreshTo
Parameters:
- password
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Verification code.
-
-
-
-
-
-
-
-
- target
+ otp
@@ -4038,7 +4012,7 @@ Parameters:
- Target client ID.
+ Verification code. Use this instead of password
to use the /oauth/token
endpoint.
@@ -4047,7 +4021,7 @@ Parameters:
- grant_type
+ password
@@ -4064,7 +4038,7 @@ Parameters:
- Grant type.
+ Verification code. Use this instead of otp
to use the /oauth/ro
endpoint.
@@ -4160,9 +4134,28 @@ Returns:
Examples
+
+ var data = {
+ username: '{PHONE_NUMBER}'
+ otp: '{VERIFICATION_CODE}'
+};
+
+auth0.verifySMSCode(data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+});
+
+
var data = {
@@ -4207,7 +4200,7 @@ Examples
diff --git a/docs/module-auth.DatabaseAuthenticator.html b/docs/module-auth.DatabaseAuthenticator.html
index 75a7148fa..df32d6744 100644
--- a/docs/module-auth.DatabaseAuthenticator.html
+++ b/docs/module-auth.DatabaseAuthenticator.html
@@ -24,7 +24,7 @@
@@ -1765,7 +1765,7 @@ Example
diff --git a/docs/module-auth.OAUthWithIDTokenValidation.html b/docs/module-auth.OAUthWithIDTokenValidation.html
index 1f84d9e13..63c047069 100644
--- a/docs/module-auth.OAUthWithIDTokenValidation.html
+++ b/docs/module-auth.OAUthWithIDTokenValidation.html
@@ -24,7 +24,7 @@
@@ -450,7 +450,7 @@ Parameters:
diff --git a/docs/module-auth.OAuthAuthenticator.html b/docs/module-auth.OAuthAuthenticator.html
index 7667e9be9..230c0ed9a 100644
--- a/docs/module-auth.OAuthAuthenticator.html
+++ b/docs/module-auth.OAuthAuthenticator.html
@@ -24,7 +24,7 @@
@@ -493,7 +493,7 @@ Methods
- authorizationCodeGrant(data) → {Promise|undefined}
+ authorizationCodeGrant(options) → {Promise|undefined}
@@ -580,7 +580,7 @@ Parameters:
- data
+ options
@@ -599,6 +599,49 @@ Parameters:
Authorization code payload
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ organization
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
@@ -606,7 +649,7 @@ Parameters:
- userData.code
+ code
@@ -632,7 +675,7 @@ Parameters:
- userData.redirect_uri
+ redirect_uri
@@ -658,6 +701,14 @@ Parameters:
+
+
+
+
+
+
+
+
@@ -710,14 +761,15 @@ Example
.
- var data = {
+ var options = {
code: '{CODE}',
redirect_uri: '{REDIRECT_URI}',
client_id: '{CLIENT_ID}', // Optional field.
client_secret: '{CLIENT_SECRET}', // Optional field.
+ organization: '{ORGANIZATION_ID}' // Optiional field.
};
-auth0.oauth.authorizationCodeGrant(data, function (err, userData) {
+auth0.oauth.authorizationCodeGrant(options, function (err, userData) {
if (err) {
// Handle error.
}
@@ -2050,7 +2102,7 @@ Returns:
diff --git a/docs/module-auth.PasswordlessAuthenticator.html b/docs/module-auth.PasswordlessAuthenticator.html
index af41ab7e6..1368a04bc 100644
--- a/docs/module-auth.PasswordlessAuthenticator.html
+++ b/docs/module-auth.PasswordlessAuthenticator.html
@@ -24,7 +24,7 @@
@@ -491,7 +491,7 @@ sendEmailSource:
sendSMSSource:
Parameters:
- otp
+ username
@@ -1417,7 +1417,7 @@ Parameters:
- The user's verification code.
+ The user's phone number if realm=sms, or the user's email if realm=email
@@ -1426,7 +1426,7 @@ Parameters:
- realm
+ otp
@@ -1441,8 +1441,6 @@ Parameters:
- <optional>
-
@@ -1453,13 +1451,11 @@ Parameters:
- sms
-
- Realm string: "sms" or "email".
+ The user's verification code. Required
@@ -1468,7 +1464,7 @@ Parameters:
- username
+ realm
@@ -1483,6 +1479,8 @@ Parameters:
+ <optional>
+
@@ -1493,11 +1491,13 @@ Parameters:
+ sms
+
- The user's phone number if realm=sms, or the user's email if realm=email
+ Realm string: "sms" or "email".
@@ -1521,6 +1521,8 @@ Parameters:
+ <optional>
+
@@ -1535,7 +1537,7 @@ Parameters:
- [DEPRECATED] Password.
+ [DEPRECATED] Password required if using legacy /oauth/ro endpoint
@@ -1772,14 +1774,16 @@ Returns:
Examples
var data = {
- username: '{PHONE_NUMBER}',
- password: '{VERIFICATION_CODE}'
+ username: '{PHONE_NUMBER OR EMAIL}',
+ otp: '{VERIFICATION_CODE}',
+ realm: '{sms or email}' // OPTIONAL DEFAULTS TO SMS
};
auth0.passwordless.signIn(data, function (err) {
@@ -1789,12 +1793,27 @@ Examples
});
+
+ {
+ id_token: String,
+ access_token: String,
+ token_type: String
+}
+
+
var data = {
username: '{PHONE_NUMBER}',
- otp: '{VERIFICATION_CODE}'
+ password: '{VERIFICATION_CODE}'
};
auth0.passwordless.signIn(data, function (err) {
@@ -1803,16 +1822,6 @@ Examples
}
});
-
-
- {
- id_token: String,
- access_token: String,
- token_type: String
-}
-
@@ -1834,7 +1843,7 @@ Examples
diff --git a/docs/module-auth.TokensManager.html b/docs/module-auth.TokensManager.html
index 4fac89847..88d23d9bd 100644
--- a/docs/module-auth.TokensManager.html
+++ b/docs/module-auth.TokensManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
TokensManager
- Provides methods for getting token data and exchanging tokens.
+ TokensManager
+Provides methods for getting token data and exchanging tokens.
@@ -372,6 +373,985 @@ Parameters:
+ Methods
+
+
+
+
+
+
+
+ getDelegationToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Exchange the token of the logged in user with a token that is valid to call
+the API (signed with the API secret).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ refresh_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ target
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ api_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The API to be used (aws, auth0, etc).
+
+
+
+
+
+
+
+
+ grant_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Grant type (password, jwt, etc).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ var data = {
+ id_token: '{ID_TOKEN}',
+ api_type: 'app',
+ target: '{TARGET}',
+ grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer'
+};
+
+auth0.tokens.getDelegationToken(data, function (err, token) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(token);
+});
+
+
+
+
+
+
+
+
+
+
+ getInfo(idToken, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Given an ID token get the user profile linked to it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ idToken
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Method callback.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ auth0.tokens.getInfo(token, function (err, tokenInfo) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(tokenInfo);
+});
+
+
+
+
+
+
+
+
+
+
+ revokeRefreshToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Proactively revoke an issued refresh token.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ client_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ client_secret
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client secret.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ * var data = {
+ token: '{REFRESH_TOKEN}'
+};
+
+auth0.tokens.revokeRefreshToken(data, function (err, _) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Do stuff.
+});
+
+
+
+
+
+
@@ -388,7 +1368,7 @@ Parameters:
diff --git a/docs/module-auth.UsersManager.html b/docs/module-auth.UsersManager.html
index e2b175178..c79000d40 100644
--- a/docs/module-auth.UsersManager.html
+++ b/docs/module-auth.UsersManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
UsersManager
- Provides methods for getting user information and impersonating users.
+ UsersManager
+Provides methods for getting user information and impersonating users.
@@ -1009,7 +1010,7 @@ Example
diff --git a/docs/module-auth.html b/docs/module-auth.html
index 80b90e83f..9abea4ea1 100644
--- a/docs/module-auth.html
+++ b/docs/module-auth.html
@@ -24,7 +24,7 @@
@@ -108,7 +108,7 @@ Classes
diff --git a/docs/module-errors.html b/docs/module-errors.html
index 60ed46bf7..998b07a27 100644
--- a/docs/module-errors.html
+++ b/docs/module-errors.html
@@ -24,7 +24,7 @@
@@ -254,7 +254,7 @@ (st
diff --git a/docs/module-management.BlacklistedTokensManager.html b/docs/module-management.BlacklistedTokensManager.html
index b82c48fad..6ba3c630c 100644
--- a/docs/module-management.BlacklistedTokensManager.html
+++ b/docs/module-management.BlacklistedTokensManager.html
@@ -24,7 +24,7 @@
@@ -991,7 +991,7 @@ Example
diff --git a/docs/module-management.BrandingManager.html b/docs/module-management.BrandingManager.html
index a63d23cf0..2522fd910 100644
--- a/docs/module-management.BrandingManager.html
+++ b/docs/module-management.BrandingManager.html
@@ -24,7 +24,7 @@
@@ -1770,7 +1770,7 @@ Example
diff --git a/docs/module-management.ClientGrantsManager.html b/docs/module-management.ClientGrantsManager.html
index f7671a159..53515c8ad 100644
--- a/docs/module-management.ClientGrantsManager.html
+++ b/docs/module-management.ClientGrantsManager.html
@@ -24,7 +24,7 @@
@@ -1636,7 +1636,7 @@ Example
diff --git a/docs/module-management.ClientsManager.html b/docs/module-management.ClientsManager.html
index 7fee17ad6..9f21a56b2 100644
--- a/docs/module-management.ClientsManager.html
+++ b/docs/module-management.ClientsManager.html
@@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@ Example
diff --git a/docs/module-management.ConnectionsManager.html b/docs/module-management.ConnectionsManager.html
index 90126eaf0..6e271162b 100644
--- a/docs/module-management.ConnectionsManager.html
+++ b/docs/module-management.ConnectionsManager.html
@@ -24,7 +24,7 @@
@@ -2269,7 +2269,7 @@ Example
diff --git a/docs/module-management.CustomDomainsManager.html b/docs/module-management.CustomDomainsManager.html
index cffe008c4..29f8fe58d 100644
--- a/docs/module-management.CustomDomainsManager.html
+++ b/docs/module-management.CustomDomainsManager.html
@@ -24,7 +24,7 @@
@@ -1731,7 +1731,7 @@ Example
diff --git a/docs/module-management.DeviceCredentialsManager.html b/docs/module-management.DeviceCredentialsManager.html
index a9fa3e060..065f7baad 100644
--- a/docs/module-management.DeviceCredentialsManager.html
+++ b/docs/module-management.DeviceCredentialsManager.html
@@ -24,7 +24,7 @@
@@ -1215,7 +1215,7 @@ Example
diff --git a/docs/module-management.EmailProviderManager.html b/docs/module-management.EmailProviderManager.html
index 4f7af385e..257926395 100644
--- a/docs/module-management.EmailProviderManager.html
+++ b/docs/module-management.EmailProviderManager.html
@@ -24,7 +24,7 @@
@@ -1480,7 +1480,7 @@ Example
diff --git a/docs/module-management.EmailTemplatesManager.html b/docs/module-management.EmailTemplatesManager.html
index 4e8b17ab0..284faee7f 100644
--- a/docs/module-management.EmailTemplatesManager.html
+++ b/docs/module-management.EmailTemplatesManager.html
@@ -24,7 +24,7 @@
@@ -1304,7 +1304,7 @@ Example
diff --git a/docs/module-management.GrantsManager.html b/docs/module-management.GrantsManager.html
index 603acc8db..9a03d5727 100644
--- a/docs/module-management.GrantsManager.html
+++ b/docs/module-management.GrantsManager.html
@@ -24,7 +24,7 @@
@@ -842,7 +842,7 @@ deleteGran
Example
diff --git a/docs/module-management.GuardianManager.html b/docs/module-management.GuardianManager.html
index 6f3b2af40..73ee47b07 100644
--- a/docs/module-management.GuardianManager.html
+++ b/docs/module-management.GuardianManager.html
@@ -24,7 +24,7 @@
@@ -4920,7 +4920,7 @@ Example
diff --git a/docs/module-management.HooksManager.html b/docs/module-management.HooksManager.html
index c856e6fff..d709e4ec8 100644
--- a/docs/module-management.HooksManager.html
+++ b/docs/module-management.HooksManager.html
@@ -24,7 +24,7 @@
@@ -3099,7 +3099,7 @@ Example
diff --git a/docs/module-management.JobsManager.html b/docs/module-management.JobsManager.html
index 518826921..c7e81e430 100644
--- a/docs/module-management.JobsManager.html
+++ b/docs/module-management.JobsManager.html
@@ -24,7 +24,7 @@
@@ -890,7 +890,7 @@ errorsSource:
Parameters:
+
+
+ organization_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
+
+
+
+
+
client_id
@@ -3109,7 +3145,7 @@ Example
diff --git a/docs/module-management.LogStreamsManager.html b/docs/module-management.LogStreamsManager.html
index 228787292..4a5a59e7e 100644
--- a/docs/module-management.LogStreamsManager.html
+++ b/docs/module-management.LogStreamsManager.html
@@ -24,7 +24,7 @@
@@ -1763,7 +1763,7 @@ Example
diff --git a/docs/module-management.LogsManager.html b/docs/module-management.LogsManager.html
index f7a3452c2..048122fa6 100644
--- a/docs/module-management.LogsManager.html
+++ b/docs/module-management.LogsManager.html
@@ -24,7 +24,7 @@
@@ -1286,7 +1286,7 @@ Example
diff --git a/docs/module-management.ManagementClient.html b/docs/module-management.ManagementClient.html
index 0d6dd77c3..16bf56466 100644
--- a/docs/module-management.ManagementClient.html
+++ b/docs/module-management.ManagementClient.html
@@ -24,7 +24,7 @@
@@ -106,7 +106,7 @@ new M
blac
brandingSource:
clientGra
clientsSource:
connection
customDo
devi
emailPro
emailTe
grantsSource:
guardianSource:
hooksSource:
jobsSource:
logsSource:
logStreams<
migrations<
Type:
+
+
+
+
+
+organizations :OrganizationsManager
+
+
+
+
+
+ Organizations Manager
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
@@ -1958,7 +2032,7 @@ promptsSource:
resour
rolesSource:
rulesSource:
rulesConf
statsSource:
tenantSource:
ticketsSource:
userBlocks<
usersSource:
addHookS
a
Source:
assi
assi
blackli
Source:
createCli
crea
creat
cre
cr
Source:
Source:
createHook<
create
c
createRole<
createRule<
createUser<
deleteA
Source:
deleteCli
dele
delet
del
Source:
de
Source:
deleteHook<
delete
d
deleteRole<
deleteRule<
dele
deleteUser<
exportUser
getAcce
ge
g
ge
Source:
getClientSource:
getCli
getClients<
getConne
getConn
getCus
getCu
getDaily
g
getEm
getEm
getGrantsSource:
Source:
Source:
get
Source:
Source:
Source:
ge
getHookSource:
getHooksSource:
getHook
getJobSource:
getLogSource:
getLogsSource:
getLogStr
getMigra
g
get
getR
get
getRoleSource:
getRolesSource:
getRuleSource:
getRulesSource:
getRul
getT
getUserSource:
getUserB
Source:
getUserLog
get
getUserRo
getUsersSource:
getUse
getUser
Parameters:
+
+
+ params.from
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Optional id from which to start selection.
+
+
+
+
+
+
+
+
+ params.take
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ The total amount of entries to retrieve when using the from parameter. Defaults to 50.
+
+
+
+
+
+
cb
@@ -27444,13 +27590,13 @@ Returns:
Examples
var params = {
- id: 'ROLE_ID'
+ id: 'ROLE_ID',
per_page: 50,
page: 0
};
management.getUsersInRole(params, function (err, users) {
@@ -27511,7 +27657,7 @@ importUser
importU
Source:
linkUsersSource:
Source:
remo
Source:
Source:
re
Source:
setRule
unblockUse
unblockUse
unlinkUser
upda
Source:
updateCli
upda
updat
up
u
u
password
refreshTo
Parameters:
- password
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Verification code.
-
-
-
-
-
-
-
-
- target
+ otp
@@ -4038,7 +4012,7 @@ Parameters:
- Target client ID.
+ Verification code. Use this instead of password
to use the /oauth/token
endpoint.
@@ -4047,7 +4021,7 @@ Parameters:
- grant_type
+ password
@@ -4064,7 +4038,7 @@ Parameters:
- Grant type.
+ Verification code. Use this instead of otp
to use the /oauth/ro
endpoint.
@@ -4160,9 +4134,28 @@ Returns:
Examples
+
+ var data = {
+ username: '{PHONE_NUMBER}'
+ otp: '{VERIFICATION_CODE}'
+};
+
+auth0.verifySMSCode(data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+});
+
+
var data = {
@@ -4207,7 +4200,7 @@ Examples
diff --git a/docs/module-auth.DatabaseAuthenticator.html b/docs/module-auth.DatabaseAuthenticator.html
index 75a7148fa..df32d6744 100644
--- a/docs/module-auth.DatabaseAuthenticator.html
+++ b/docs/module-auth.DatabaseAuthenticator.html
@@ -24,7 +24,7 @@
@@ -1765,7 +1765,7 @@ Example
diff --git a/docs/module-auth.OAUthWithIDTokenValidation.html b/docs/module-auth.OAUthWithIDTokenValidation.html
index 1f84d9e13..63c047069 100644
--- a/docs/module-auth.OAUthWithIDTokenValidation.html
+++ b/docs/module-auth.OAUthWithIDTokenValidation.html
@@ -24,7 +24,7 @@
@@ -450,7 +450,7 @@ Parameters:
diff --git a/docs/module-auth.OAuthAuthenticator.html b/docs/module-auth.OAuthAuthenticator.html
index 7667e9be9..230c0ed9a 100644
--- a/docs/module-auth.OAuthAuthenticator.html
+++ b/docs/module-auth.OAuthAuthenticator.html
@@ -24,7 +24,7 @@
@@ -493,7 +493,7 @@ Methods
- authorizationCodeGrant(data) → {Promise|undefined}
+ authorizationCodeGrant(options) → {Promise|undefined}
@@ -580,7 +580,7 @@ Parameters:
- data
+ options
@@ -599,6 +599,49 @@ Parameters:
Authorization code payload
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ organization
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
@@ -606,7 +649,7 @@ Parameters:
- userData.code
+ code
@@ -632,7 +675,7 @@ Parameters:
- userData.redirect_uri
+ redirect_uri
@@ -658,6 +701,14 @@ Parameters:
+
+
+
+
+
+
+
+
@@ -710,14 +761,15 @@ Example
.
- var data = {
+ var options = {
code: '{CODE}',
redirect_uri: '{REDIRECT_URI}',
client_id: '{CLIENT_ID}', // Optional field.
client_secret: '{CLIENT_SECRET}', // Optional field.
+ organization: '{ORGANIZATION_ID}' // Optiional field.
};
-auth0.oauth.authorizationCodeGrant(data, function (err, userData) {
+auth0.oauth.authorizationCodeGrant(options, function (err, userData) {
if (err) {
// Handle error.
}
@@ -2050,7 +2102,7 @@ Returns:
diff --git a/docs/module-auth.PasswordlessAuthenticator.html b/docs/module-auth.PasswordlessAuthenticator.html
index af41ab7e6..1368a04bc 100644
--- a/docs/module-auth.PasswordlessAuthenticator.html
+++ b/docs/module-auth.PasswordlessAuthenticator.html
@@ -24,7 +24,7 @@
@@ -491,7 +491,7 @@ sendEmailSource:
sendSMSSource:
Parameters:
- otp
+ username
@@ -1417,7 +1417,7 @@ Parameters:
- The user's verification code.
+ The user's phone number if realm=sms, or the user's email if realm=email
@@ -1426,7 +1426,7 @@ Parameters:
- realm
+ otp
@@ -1441,8 +1441,6 @@ Parameters:
- <optional>
-
@@ -1453,13 +1451,11 @@ Parameters:
- sms
-
- Realm string: "sms" or "email".
+ The user's verification code. Required
@@ -1468,7 +1464,7 @@ Parameters:
- username
+ realm
@@ -1483,6 +1479,8 @@ Parameters:
+ <optional>
+
@@ -1493,11 +1491,13 @@ Parameters:
+ sms
+
- The user's phone number if realm=sms, or the user's email if realm=email
+ Realm string: "sms" or "email".
@@ -1521,6 +1521,8 @@ Parameters:
+ <optional>
+
@@ -1535,7 +1537,7 @@ Parameters:
- [DEPRECATED] Password.
+ [DEPRECATED] Password required if using legacy /oauth/ro endpoint
@@ -1772,14 +1774,16 @@ Returns:
Examples
var data = {
- username: '{PHONE_NUMBER}',
- password: '{VERIFICATION_CODE}'
+ username: '{PHONE_NUMBER OR EMAIL}',
+ otp: '{VERIFICATION_CODE}',
+ realm: '{sms or email}' // OPTIONAL DEFAULTS TO SMS
};
auth0.passwordless.signIn(data, function (err) {
@@ -1789,12 +1793,27 @@ Examples
});
+
+ {
+ id_token: String,
+ access_token: String,
+ token_type: String
+}
+
+
var data = {
username: '{PHONE_NUMBER}',
- otp: '{VERIFICATION_CODE}'
+ password: '{VERIFICATION_CODE}'
};
auth0.passwordless.signIn(data, function (err) {
@@ -1803,16 +1822,6 @@ Examples
}
});
-
-
- {
- id_token: String,
- access_token: String,
- token_type: String
-}
-
@@ -1834,7 +1843,7 @@ Examples
diff --git a/docs/module-auth.TokensManager.html b/docs/module-auth.TokensManager.html
index 4fac89847..88d23d9bd 100644
--- a/docs/module-auth.TokensManager.html
+++ b/docs/module-auth.TokensManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
TokensManager
- Provides methods for getting token data and exchanging tokens.
+ TokensManager
+Provides methods for getting token data and exchanging tokens.
@@ -372,6 +373,985 @@ Parameters:
+ Methods
+
+
+
+
+
+
+
+ getDelegationToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Exchange the token of the logged in user with a token that is valid to call
+the API (signed with the API secret).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ refresh_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ target
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ api_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The API to be used (aws, auth0, etc).
+
+
+
+
+
+
+
+
+ grant_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Grant type (password, jwt, etc).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ var data = {
+ id_token: '{ID_TOKEN}',
+ api_type: 'app',
+ target: '{TARGET}',
+ grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer'
+};
+
+auth0.tokens.getDelegationToken(data, function (err, token) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(token);
+});
+
+
+
+
+
+
+
+
+
+
+ getInfo(idToken, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Given an ID token get the user profile linked to it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ idToken
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Method callback.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ auth0.tokens.getInfo(token, function (err, tokenInfo) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(tokenInfo);
+});
+
+
+
+
+
+
+
+
+
+
+ revokeRefreshToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Proactively revoke an issued refresh token.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ client_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ client_secret
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client secret.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ * var data = {
+ token: '{REFRESH_TOKEN}'
+};
+
+auth0.tokens.revokeRefreshToken(data, function (err, _) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Do stuff.
+});
+
+
+
+
+
+
@@ -388,7 +1368,7 @@ Parameters:
diff --git a/docs/module-auth.UsersManager.html b/docs/module-auth.UsersManager.html
index e2b175178..c79000d40 100644
--- a/docs/module-auth.UsersManager.html
+++ b/docs/module-auth.UsersManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
UsersManager
- Provides methods for getting user information and impersonating users.
+ UsersManager
+Provides methods for getting user information and impersonating users.
@@ -1009,7 +1010,7 @@ Example
diff --git a/docs/module-auth.html b/docs/module-auth.html
index 80b90e83f..9abea4ea1 100644
--- a/docs/module-auth.html
+++ b/docs/module-auth.html
@@ -24,7 +24,7 @@
@@ -108,7 +108,7 @@ Classes
diff --git a/docs/module-errors.html b/docs/module-errors.html
index 60ed46bf7..998b07a27 100644
--- a/docs/module-errors.html
+++ b/docs/module-errors.html
@@ -24,7 +24,7 @@
@@ -254,7 +254,7 @@ (st
diff --git a/docs/module-management.BlacklistedTokensManager.html b/docs/module-management.BlacklistedTokensManager.html
index b82c48fad..6ba3c630c 100644
--- a/docs/module-management.BlacklistedTokensManager.html
+++ b/docs/module-management.BlacklistedTokensManager.html
@@ -24,7 +24,7 @@
@@ -991,7 +991,7 @@ Example
diff --git a/docs/module-management.BrandingManager.html b/docs/module-management.BrandingManager.html
index a63d23cf0..2522fd910 100644
--- a/docs/module-management.BrandingManager.html
+++ b/docs/module-management.BrandingManager.html
@@ -24,7 +24,7 @@
@@ -1770,7 +1770,7 @@ Example
diff --git a/docs/module-management.ClientGrantsManager.html b/docs/module-management.ClientGrantsManager.html
index f7671a159..53515c8ad 100644
--- a/docs/module-management.ClientGrantsManager.html
+++ b/docs/module-management.ClientGrantsManager.html
@@ -24,7 +24,7 @@
@@ -1636,7 +1636,7 @@ Example
diff --git a/docs/module-management.ClientsManager.html b/docs/module-management.ClientsManager.html
index 7fee17ad6..9f21a56b2 100644
--- a/docs/module-management.ClientsManager.html
+++ b/docs/module-management.ClientsManager.html
@@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@ Example
diff --git a/docs/module-management.ConnectionsManager.html b/docs/module-management.ConnectionsManager.html
index 90126eaf0..6e271162b 100644
--- a/docs/module-management.ConnectionsManager.html
+++ b/docs/module-management.ConnectionsManager.html
@@ -24,7 +24,7 @@
@@ -2269,7 +2269,7 @@ Example
diff --git a/docs/module-management.CustomDomainsManager.html b/docs/module-management.CustomDomainsManager.html
index cffe008c4..29f8fe58d 100644
--- a/docs/module-management.CustomDomainsManager.html
+++ b/docs/module-management.CustomDomainsManager.html
@@ -24,7 +24,7 @@
@@ -1731,7 +1731,7 @@ Example
diff --git a/docs/module-management.DeviceCredentialsManager.html b/docs/module-management.DeviceCredentialsManager.html
index a9fa3e060..065f7baad 100644
--- a/docs/module-management.DeviceCredentialsManager.html
+++ b/docs/module-management.DeviceCredentialsManager.html
@@ -24,7 +24,7 @@
@@ -1215,7 +1215,7 @@ Example
diff --git a/docs/module-management.EmailProviderManager.html b/docs/module-management.EmailProviderManager.html
index 4f7af385e..257926395 100644
--- a/docs/module-management.EmailProviderManager.html
+++ b/docs/module-management.EmailProviderManager.html
@@ -24,7 +24,7 @@
@@ -1480,7 +1480,7 @@ Example
diff --git a/docs/module-management.EmailTemplatesManager.html b/docs/module-management.EmailTemplatesManager.html
index 4e8b17ab0..284faee7f 100644
--- a/docs/module-management.EmailTemplatesManager.html
+++ b/docs/module-management.EmailTemplatesManager.html
@@ -24,7 +24,7 @@
@@ -1304,7 +1304,7 @@ Example
diff --git a/docs/module-management.GrantsManager.html b/docs/module-management.GrantsManager.html
index 603acc8db..9a03d5727 100644
--- a/docs/module-management.GrantsManager.html
+++ b/docs/module-management.GrantsManager.html
@@ -24,7 +24,7 @@
@@ -842,7 +842,7 @@ deleteGran
Example
diff --git a/docs/module-management.GuardianManager.html b/docs/module-management.GuardianManager.html
index 6f3b2af40..73ee47b07 100644
--- a/docs/module-management.GuardianManager.html
+++ b/docs/module-management.GuardianManager.html
@@ -24,7 +24,7 @@
@@ -4920,7 +4920,7 @@ Example
diff --git a/docs/module-management.HooksManager.html b/docs/module-management.HooksManager.html
index c856e6fff..d709e4ec8 100644
--- a/docs/module-management.HooksManager.html
+++ b/docs/module-management.HooksManager.html
@@ -24,7 +24,7 @@
@@ -3099,7 +3099,7 @@ Example
diff --git a/docs/module-management.JobsManager.html b/docs/module-management.JobsManager.html
index 518826921..c7e81e430 100644
--- a/docs/module-management.JobsManager.html
+++ b/docs/module-management.JobsManager.html
@@ -24,7 +24,7 @@
@@ -890,7 +890,7 @@ errorsSource:
Parameters:
+
+
+ organization_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
+
+
+
+
+
client_id
@@ -3109,7 +3145,7 @@ Example
diff --git a/docs/module-management.LogStreamsManager.html b/docs/module-management.LogStreamsManager.html
index 228787292..4a5a59e7e 100644
--- a/docs/module-management.LogStreamsManager.html
+++ b/docs/module-management.LogStreamsManager.html
@@ -24,7 +24,7 @@
@@ -1763,7 +1763,7 @@ Example
diff --git a/docs/module-management.LogsManager.html b/docs/module-management.LogsManager.html
index f7a3452c2..048122fa6 100644
--- a/docs/module-management.LogsManager.html
+++ b/docs/module-management.LogsManager.html
@@ -24,7 +24,7 @@
@@ -1286,7 +1286,7 @@ Example
diff --git a/docs/module-management.ManagementClient.html b/docs/module-management.ManagementClient.html
index 0d6dd77c3..16bf56466 100644
--- a/docs/module-management.ManagementClient.html
+++ b/docs/module-management.ManagementClient.html
@@ -24,7 +24,7 @@
@@ -106,7 +106,7 @@ new M
blac
brandingSource:
clientGra
clientsSource:
connection
customDo
devi
emailPro
emailTe
grantsSource:
guardianSource:
hooksSource:
jobsSource:
logsSource:
logStreams<
migrations<
Type:
+
+
+
+
+
+organizations :OrganizationsManager
+
+
+
+
+
+ Organizations Manager
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
@@ -1958,7 +2032,7 @@ promptsSource:
resour
rolesSource:
rulesSource:
rulesConf
statsSource:
tenantSource:
ticketsSource:
userBlocks<
usersSource:
addHookS
a
Source:
assi
assi
blackli
Source:
createCli
crea
creat
cre
cr
Source:
Source:
createHook<
create
c
createRole<
createRule<
createUser<
deleteA
Source:
deleteCli
dele
delet
del
Source:
de
Source:
deleteHook<
delete
d
deleteRole<
deleteRule<
dele
deleteUser<
exportUser
getAcce
ge
g
ge
Source:
getClientSource:
getCli
getClients<
getConne
getConn
getCus
getCu
getDaily
g
getEm
getEm
getGrantsSource:
Source:
Source:
get
Source:
Source:
Source:
ge
getHookSource:
getHooksSource:
getHook
getJobSource:
getLogSource:
getLogsSource:
getLogStr
getMigra
g
get
getR
get
getRoleSource:
getRolesSource:
getRuleSource:
getRulesSource:
getRul
getT
getUserSource:
getUserB
Source:
getUserLog
get
getUserRo
getUsersSource:
getUse
getUser
Parameters:
+
+
+ params.from
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Optional id from which to start selection.
+
+
+
+
+
+
+
+
+ params.take
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ The total amount of entries to retrieve when using the from parameter. Defaults to 50.
+
+
+
+
+
+
cb
@@ -27444,13 +27590,13 @@ Returns:
Examples
var params = {
- id: 'ROLE_ID'
+ id: 'ROLE_ID',
per_page: 50,
page: 0
};
management.getUsersInRole(params, function (err, users) {
@@ -27511,7 +27657,7 @@ importUser
importU
Source:
linkUsersSource:
Source:
remo
Source:
Source:
re
Source:
setRule
unblockUse
unblockUse
unlinkUser
upda
Source:
updateCli
upda
updat
up
u
u
Parameters:
- password
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Verification code.
-
-
-
-
-
-
-
-
- target
+ otp
@@ -4038,7 +4012,7 @@ Parameters:
- Target client ID.
+ Verification code. Use this instead of password
to use the /oauth/token
endpoint.
@@ -4047,7 +4021,7 @@ Parameters:
- grant_type
+ password
@@ -4064,7 +4038,7 @@ Parameters:
- Grant type.
+ Verification code. Use this instead of otp
to use the /oauth/ro
endpoint.
@@ -4160,9 +4134,28 @@ Returns:
Examples
+
+ var data = {
+ username: '{PHONE_NUMBER}'
+ otp: '{VERIFICATION_CODE}'
+};
+
+auth0.verifySMSCode(data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+});
+
+
var data = {
@@ -4207,7 +4200,7 @@ Examples
diff --git a/docs/module-auth.DatabaseAuthenticator.html b/docs/module-auth.DatabaseAuthenticator.html
index 75a7148fa..df32d6744 100644
--- a/docs/module-auth.DatabaseAuthenticator.html
+++ b/docs/module-auth.DatabaseAuthenticator.html
@@ -24,7 +24,7 @@
@@ -1765,7 +1765,7 @@ Example
diff --git a/docs/module-auth.OAUthWithIDTokenValidation.html b/docs/module-auth.OAUthWithIDTokenValidation.html
index 1f84d9e13..63c047069 100644
--- a/docs/module-auth.OAUthWithIDTokenValidation.html
+++ b/docs/module-auth.OAUthWithIDTokenValidation.html
@@ -24,7 +24,7 @@
@@ -450,7 +450,7 @@ Parameters:
diff --git a/docs/module-auth.OAuthAuthenticator.html b/docs/module-auth.OAuthAuthenticator.html
index 7667e9be9..230c0ed9a 100644
--- a/docs/module-auth.OAuthAuthenticator.html
+++ b/docs/module-auth.OAuthAuthenticator.html
@@ -24,7 +24,7 @@
@@ -493,7 +493,7 @@ Methods
- authorizationCodeGrant(data) → {Promise|undefined}
+ authorizationCodeGrant(options) → {Promise|undefined}
@@ -580,7 +580,7 @@ Parameters:
- data
+ options
@@ -599,6 +599,49 @@ Parameters:
Authorization code payload
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ organization
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
@@ -606,7 +649,7 @@ Parameters:
- userData.code
+ code
@@ -632,7 +675,7 @@ Parameters:
- userData.redirect_uri
+ redirect_uri
@@ -658,6 +701,14 @@ Parameters:
+
+
+
+
+
+
+
+
@@ -710,14 +761,15 @@ Example
.
- var data = {
+ var options = {
code: '{CODE}',
redirect_uri: '{REDIRECT_URI}',
client_id: '{CLIENT_ID}', // Optional field.
client_secret: '{CLIENT_SECRET}', // Optional field.
+ organization: '{ORGANIZATION_ID}' // Optiional field.
};
-auth0.oauth.authorizationCodeGrant(data, function (err, userData) {
+auth0.oauth.authorizationCodeGrant(options, function (err, userData) {
if (err) {
// Handle error.
}
@@ -2050,7 +2102,7 @@ Returns:
diff --git a/docs/module-auth.PasswordlessAuthenticator.html b/docs/module-auth.PasswordlessAuthenticator.html
index af41ab7e6..1368a04bc 100644
--- a/docs/module-auth.PasswordlessAuthenticator.html
+++ b/docs/module-auth.PasswordlessAuthenticator.html
@@ -24,7 +24,7 @@
@@ -491,7 +491,7 @@ sendEmailSource:
sendSMSSource:
Parameters:
- otp
+ username
@@ -1417,7 +1417,7 @@ Parameters:
- The user's verification code.
+ The user's phone number if realm=sms, or the user's email if realm=email
@@ -1426,7 +1426,7 @@ Parameters:
- realm
+ otp
@@ -1441,8 +1441,6 @@ Parameters:
- <optional>
-
@@ -1453,13 +1451,11 @@ Parameters:
- sms
-
- Realm string: "sms" or "email".
+ The user's verification code. Required
@@ -1468,7 +1464,7 @@ Parameters:
- username
+ realm
@@ -1483,6 +1479,8 @@ Parameters:
+ <optional>
+
@@ -1493,11 +1491,13 @@ Parameters:
+ sms
+
- The user's phone number if realm=sms, or the user's email if realm=email
+ Realm string: "sms" or "email".
@@ -1521,6 +1521,8 @@ Parameters:
+ <optional>
+
@@ -1535,7 +1537,7 @@ Parameters:
- [DEPRECATED] Password.
+ [DEPRECATED] Password required if using legacy /oauth/ro endpoint
@@ -1772,14 +1774,16 @@ Returns:
Examples
var data = {
- username: '{PHONE_NUMBER}',
- password: '{VERIFICATION_CODE}'
+ username: '{PHONE_NUMBER OR EMAIL}',
+ otp: '{VERIFICATION_CODE}',
+ realm: '{sms or email}' // OPTIONAL DEFAULTS TO SMS
};
auth0.passwordless.signIn(data, function (err) {
@@ -1789,12 +1793,27 @@ Examples
});
+
+ {
+ id_token: String,
+ access_token: String,
+ token_type: String
+}
+
+
var data = {
username: '{PHONE_NUMBER}',
- otp: '{VERIFICATION_CODE}'
+ password: '{VERIFICATION_CODE}'
};
auth0.passwordless.signIn(data, function (err) {
@@ -1803,16 +1822,6 @@ Examples
}
});
-
-
- {
- id_token: String,
- access_token: String,
- token_type: String
-}
-
@@ -1834,7 +1843,7 @@ Examples
diff --git a/docs/module-auth.TokensManager.html b/docs/module-auth.TokensManager.html
index 4fac89847..88d23d9bd 100644
--- a/docs/module-auth.TokensManager.html
+++ b/docs/module-auth.TokensManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
TokensManager
- Provides methods for getting token data and exchanging tokens.
+ TokensManager
+Provides methods for getting token data and exchanging tokens.
@@ -372,6 +373,985 @@ Parameters:
+ Methods
+
+
+
+
+
+
+
+ getDelegationToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Exchange the token of the logged in user with a token that is valid to call
+the API (signed with the API secret).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ refresh_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ target
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ api_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The API to be used (aws, auth0, etc).
+
+
+
+
+
+
+
+
+ grant_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Grant type (password, jwt, etc).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ var data = {
+ id_token: '{ID_TOKEN}',
+ api_type: 'app',
+ target: '{TARGET}',
+ grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer'
+};
+
+auth0.tokens.getDelegationToken(data, function (err, token) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(token);
+});
+
+
+
+
+
+
+
+
+
+
+ getInfo(idToken, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Given an ID token get the user profile linked to it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ idToken
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Method callback.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ auth0.tokens.getInfo(token, function (err, tokenInfo) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(tokenInfo);
+});
+
+
+
+
+
+
+
+
+
+
+ revokeRefreshToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Proactively revoke an issued refresh token.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ client_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ client_secret
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client secret.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ * var data = {
+ token: '{REFRESH_TOKEN}'
+};
+
+auth0.tokens.revokeRefreshToken(data, function (err, _) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Do stuff.
+});
+
+
+
+
+
+
@@ -388,7 +1368,7 @@ Parameters:
diff --git a/docs/module-auth.UsersManager.html b/docs/module-auth.UsersManager.html
index e2b175178..c79000d40 100644
--- a/docs/module-auth.UsersManager.html
+++ b/docs/module-auth.UsersManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
UsersManager
- Provides methods for getting user information and impersonating users.
+ UsersManager
+Provides methods for getting user information and impersonating users.
@@ -1009,7 +1010,7 @@ Example
diff --git a/docs/module-auth.html b/docs/module-auth.html
index 80b90e83f..9abea4ea1 100644
--- a/docs/module-auth.html
+++ b/docs/module-auth.html
@@ -24,7 +24,7 @@
@@ -108,7 +108,7 @@ Classes
diff --git a/docs/module-errors.html b/docs/module-errors.html
index 60ed46bf7..998b07a27 100644
--- a/docs/module-errors.html
+++ b/docs/module-errors.html
@@ -24,7 +24,7 @@
@@ -254,7 +254,7 @@ (st
diff --git a/docs/module-management.BlacklistedTokensManager.html b/docs/module-management.BlacklistedTokensManager.html
index b82c48fad..6ba3c630c 100644
--- a/docs/module-management.BlacklistedTokensManager.html
+++ b/docs/module-management.BlacklistedTokensManager.html
@@ -24,7 +24,7 @@
@@ -991,7 +991,7 @@ Example
diff --git a/docs/module-management.BrandingManager.html b/docs/module-management.BrandingManager.html
index a63d23cf0..2522fd910 100644
--- a/docs/module-management.BrandingManager.html
+++ b/docs/module-management.BrandingManager.html
@@ -24,7 +24,7 @@
@@ -1770,7 +1770,7 @@ Example
diff --git a/docs/module-management.ClientGrantsManager.html b/docs/module-management.ClientGrantsManager.html
index f7671a159..53515c8ad 100644
--- a/docs/module-management.ClientGrantsManager.html
+++ b/docs/module-management.ClientGrantsManager.html
@@ -24,7 +24,7 @@
@@ -1636,7 +1636,7 @@ Example
diff --git a/docs/module-management.ClientsManager.html b/docs/module-management.ClientsManager.html
index 7fee17ad6..9f21a56b2 100644
--- a/docs/module-management.ClientsManager.html
+++ b/docs/module-management.ClientsManager.html
@@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@ Example
diff --git a/docs/module-management.ConnectionsManager.html b/docs/module-management.ConnectionsManager.html
index 90126eaf0..6e271162b 100644
--- a/docs/module-management.ConnectionsManager.html
+++ b/docs/module-management.ConnectionsManager.html
@@ -24,7 +24,7 @@
@@ -2269,7 +2269,7 @@ Example
diff --git a/docs/module-management.CustomDomainsManager.html b/docs/module-management.CustomDomainsManager.html
index cffe008c4..29f8fe58d 100644
--- a/docs/module-management.CustomDomainsManager.html
+++ b/docs/module-management.CustomDomainsManager.html
@@ -24,7 +24,7 @@
@@ -1731,7 +1731,7 @@ Example
diff --git a/docs/module-management.DeviceCredentialsManager.html b/docs/module-management.DeviceCredentialsManager.html
index a9fa3e060..065f7baad 100644
--- a/docs/module-management.DeviceCredentialsManager.html
+++ b/docs/module-management.DeviceCredentialsManager.html
@@ -24,7 +24,7 @@
@@ -1215,7 +1215,7 @@ Example
diff --git a/docs/module-management.EmailProviderManager.html b/docs/module-management.EmailProviderManager.html
index 4f7af385e..257926395 100644
--- a/docs/module-management.EmailProviderManager.html
+++ b/docs/module-management.EmailProviderManager.html
@@ -24,7 +24,7 @@
@@ -1480,7 +1480,7 @@ Example
diff --git a/docs/module-management.EmailTemplatesManager.html b/docs/module-management.EmailTemplatesManager.html
index 4e8b17ab0..284faee7f 100644
--- a/docs/module-management.EmailTemplatesManager.html
+++ b/docs/module-management.EmailTemplatesManager.html
@@ -24,7 +24,7 @@
@@ -1304,7 +1304,7 @@ Example
diff --git a/docs/module-management.GrantsManager.html b/docs/module-management.GrantsManager.html
index 603acc8db..9a03d5727 100644
--- a/docs/module-management.GrantsManager.html
+++ b/docs/module-management.GrantsManager.html
@@ -24,7 +24,7 @@
@@ -842,7 +842,7 @@ deleteGran
Example
diff --git a/docs/module-management.GuardianManager.html b/docs/module-management.GuardianManager.html
index 6f3b2af40..73ee47b07 100644
--- a/docs/module-management.GuardianManager.html
+++ b/docs/module-management.GuardianManager.html
@@ -24,7 +24,7 @@
@@ -4920,7 +4920,7 @@ Example
diff --git a/docs/module-management.HooksManager.html b/docs/module-management.HooksManager.html
index c856e6fff..d709e4ec8 100644
--- a/docs/module-management.HooksManager.html
+++ b/docs/module-management.HooksManager.html
@@ -24,7 +24,7 @@
@@ -3099,7 +3099,7 @@ Example
diff --git a/docs/module-management.JobsManager.html b/docs/module-management.JobsManager.html
index 518826921..c7e81e430 100644
--- a/docs/module-management.JobsManager.html
+++ b/docs/module-management.JobsManager.html
@@ -24,7 +24,7 @@
@@ -890,7 +890,7 @@ errorsSource:
Parameters:
+
+
+ organization_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
+
+
+
+
+
client_id
@@ -3109,7 +3145,7 @@ Example
diff --git a/docs/module-management.LogStreamsManager.html b/docs/module-management.LogStreamsManager.html
index 228787292..4a5a59e7e 100644
--- a/docs/module-management.LogStreamsManager.html
+++ b/docs/module-management.LogStreamsManager.html
@@ -24,7 +24,7 @@
@@ -1763,7 +1763,7 @@ Example
diff --git a/docs/module-management.LogsManager.html b/docs/module-management.LogsManager.html
index f7a3452c2..048122fa6 100644
--- a/docs/module-management.LogsManager.html
+++ b/docs/module-management.LogsManager.html
@@ -24,7 +24,7 @@
@@ -1286,7 +1286,7 @@ Example
diff --git a/docs/module-management.ManagementClient.html b/docs/module-management.ManagementClient.html
index 0d6dd77c3..16bf56466 100644
--- a/docs/module-management.ManagementClient.html
+++ b/docs/module-management.ManagementClient.html
@@ -24,7 +24,7 @@
@@ -106,7 +106,7 @@ new M
blac
brandingSource:
clientGra
clientsSource:
connection
customDo
devi
emailPro
emailTe
grantsSource:
guardianSource:
hooksSource:
jobsSource:
logsSource:
logStreams<
migrations<
Type:
+
+
+
+
+
+organizations :OrganizationsManager
+
+
+
+
+
+ Organizations Manager
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
@@ -1958,7 +2032,7 @@ promptsSource:
resour
rolesSource:
rulesSource:
rulesConf
statsSource:
tenantSource:
ticketsSource:
userBlocks<
usersSource:
addHookS
a
Source:
assi
assi
blackli
Source:
createCli
crea
creat
cre
cr
Source:
Source:
createHook<
create
c
createRole<
createRule<
createUser<
deleteA
Source:
deleteCli
dele
delet
del
Source:
de
Source:
deleteHook<
delete
d
deleteRole<
deleteRule<
dele
deleteUser<
exportUser
getAcce
ge
g
ge
Source:
getClientSource:
getCli
getClients<
getConne
getConn
getCus
getCu
getDaily
g
getEm
getEm
getGrantsSource:
Source:
Source:
get
Source:
Source:
Source:
ge
getHookSource:
getHooksSource:
getHook
getJobSource:
getLogSource:
getLogsSource:
getLogStr
getMigra
g
get
getR
get
getRoleSource:
getRolesSource:
getRuleSource:
getRulesSource:
getRul
getT
getUserSource:
getUserB
Source:
getUserLog
get
getUserRo
getUsersSource:
getUse
getUser
Parameters:
+
+
+ params.from
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Optional id from which to start selection.
+
+
+
+
+
+
+
+
+ params.take
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ The total amount of entries to retrieve when using the from parameter. Defaults to 50.
+
+
+
+
+
+
cb
@@ -27444,13 +27590,13 @@ Returns:
Examples
var params = {
- id: 'ROLE_ID'
+ id: 'ROLE_ID',
per_page: 50,
page: 0
};
management.getUsersInRole(params, function (err, users) {
@@ -27511,7 +27657,7 @@ importUser
importU
Source:
linkUsersSource:
Source:
remo
Source:
Source:
re
Source:
setRule
unblockUse
unblockUse
unlinkUser
upda
Source:
updateCli
upda
updat
up
u
u
password
String
-
-
-
- Verification code.
- -target
otp
Parameters:
Target client ID.
+Verification code. Use this instead of password
to use the /oauth/token
endpoint.
grant_type
password
Parameters:
Grant type.
+Verification code. Use this instead of otp
to use the /oauth/ro
endpoint.
var data = {
+ username: '{PHONE_NUMBER}'
+ otp: '{VERIFICATION_CODE}'
+};
+
+auth0.verifySMSCode(data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+});
var data = {
@@ -4207,7 +4200,7 @@ Examples
diff --git a/docs/module-auth.DatabaseAuthenticator.html b/docs/module-auth.DatabaseAuthenticator.html
index 75a7148fa..df32d6744 100644
--- a/docs/module-auth.DatabaseAuthenticator.html
+++ b/docs/module-auth.DatabaseAuthenticator.html
@@ -24,7 +24,7 @@
@@ -1765,7 +1765,7 @@ Example
diff --git a/docs/module-auth.OAUthWithIDTokenValidation.html b/docs/module-auth.OAUthWithIDTokenValidation.html
index 1f84d9e13..63c047069 100644
--- a/docs/module-auth.OAUthWithIDTokenValidation.html
+++ b/docs/module-auth.OAUthWithIDTokenValidation.html
@@ -24,7 +24,7 @@
@@ -450,7 +450,7 @@ Parameters:
diff --git a/docs/module-auth.OAuthAuthenticator.html b/docs/module-auth.OAuthAuthenticator.html
index 7667e9be9..230c0ed9a 100644
--- a/docs/module-auth.OAuthAuthenticator.html
+++ b/docs/module-auth.OAuthAuthenticator.html
@@ -24,7 +24,7 @@
@@ -493,7 +493,7 @@ Methods
- authorizationCodeGrant(data) → {Promise|undefined}
+ authorizationCodeGrant(options) → {Promise|undefined}
@@ -580,7 +580,7 @@ Parameters:
- data
+ options
@@ -599,6 +599,49 @@ Parameters:
Authorization code payload
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ organization
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
@@ -606,7 +649,7 @@ Parameters:
- userData.code
+ code
@@ -632,7 +675,7 @@ Parameters:
- userData.redirect_uri
+ redirect_uri
@@ -658,6 +701,14 @@ Parameters:
+
+
+
+
+
+
+
+
@@ -710,14 +761,15 @@ Example
.
- var data = {
+ var options = {
code: '{CODE}',
redirect_uri: '{REDIRECT_URI}',
client_id: '{CLIENT_ID}', // Optional field.
client_secret: '{CLIENT_SECRET}', // Optional field.
+ organization: '{ORGANIZATION_ID}' // Optiional field.
};
-auth0.oauth.authorizationCodeGrant(data, function (err, userData) {
+auth0.oauth.authorizationCodeGrant(options, function (err, userData) {
if (err) {
// Handle error.
}
@@ -2050,7 +2102,7 @@ Returns:
diff --git a/docs/module-auth.PasswordlessAuthenticator.html b/docs/module-auth.PasswordlessAuthenticator.html
index af41ab7e6..1368a04bc 100644
--- a/docs/module-auth.PasswordlessAuthenticator.html
+++ b/docs/module-auth.PasswordlessAuthenticator.html
@@ -24,7 +24,7 @@
@@ -491,7 +491,7 @@ sendEmailSource:
sendSMSSource:
Parameters:
- otp
+ username
@@ -1417,7 +1417,7 @@ Parameters:
- The user's verification code.
+ The user's phone number if realm=sms, or the user's email if realm=email
@@ -1426,7 +1426,7 @@ Parameters:
- realm
+ otp
@@ -1441,8 +1441,6 @@ Parameters:
- <optional>
-
@@ -1453,13 +1451,11 @@ Parameters:
- sms
-
- Realm string: "sms" or "email".
+ The user's verification code. Required
@@ -1468,7 +1464,7 @@ Parameters:
- username
+ realm
@@ -1483,6 +1479,8 @@ Parameters:
+ <optional>
+
@@ -1493,11 +1491,13 @@ Parameters:
+ sms
+
- The user's phone number if realm=sms, or the user's email if realm=email
+ Realm string: "sms" or "email".
@@ -1521,6 +1521,8 @@ Parameters:
+ <optional>
+
@@ -1535,7 +1537,7 @@ Parameters:
- [DEPRECATED] Password.
+ [DEPRECATED] Password required if using legacy /oauth/ro endpoint
@@ -1772,14 +1774,16 @@ Returns:
Examples
var data = {
- username: '{PHONE_NUMBER}',
- password: '{VERIFICATION_CODE}'
+ username: '{PHONE_NUMBER OR EMAIL}',
+ otp: '{VERIFICATION_CODE}',
+ realm: '{sms or email}' // OPTIONAL DEFAULTS TO SMS
};
auth0.passwordless.signIn(data, function (err) {
@@ -1789,12 +1793,27 @@ Examples
});
+
+ {
+ id_token: String,
+ access_token: String,
+ token_type: String
+}
+
+
var data = {
username: '{PHONE_NUMBER}',
- otp: '{VERIFICATION_CODE}'
+ password: '{VERIFICATION_CODE}'
};
auth0.passwordless.signIn(data, function (err) {
@@ -1803,16 +1822,6 @@ Examples
}
});
-
-
- {
- id_token: String,
- access_token: String,
- token_type: String
-}
-
@@ -1834,7 +1843,7 @@ Examples
diff --git a/docs/module-auth.TokensManager.html b/docs/module-auth.TokensManager.html
index 4fac89847..88d23d9bd 100644
--- a/docs/module-auth.TokensManager.html
+++ b/docs/module-auth.TokensManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
TokensManager
- Provides methods for getting token data and exchanging tokens.
+ TokensManager
+Provides methods for getting token data and exchanging tokens.
@@ -372,6 +373,985 @@ Parameters:
+ Methods
+
+
+
+
+
+
+
+ getDelegationToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Exchange the token of the logged in user with a token that is valid to call
+the API (signed with the API secret).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ refresh_token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ target
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ api_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The API to be used (aws, auth0, etc).
+
+
+
+
+
+
+
+
+ grant_type
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Grant type (password, jwt, etc).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ var data = {
+ id_token: '{ID_TOKEN}',
+ api_type: 'app',
+ target: '{TARGET}',
+ grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer'
+};
+
+auth0.tokens.getDelegationToken(data, function (err, token) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(token);
+});
+
+
+
+
+
+
+
+
+
+
+ getInfo(idToken, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Given an ID token get the user profile linked to it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ idToken
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User ID token.
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Method callback.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ auth0.tokens.getInfo(token, function (err, tokenInfo) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(tokenInfo);
+});
+
+
+
+
+
+
+
+
+
+
+ revokeRefreshToken(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Proactively revoke an issued refresh token.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ token
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ User refresh token.
+
+
+
+
+
+
+
+
+ client_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client ID.
+
+
+
+
+
+
+
+
+ client_secret
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Target client secret.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ * var data = {
+ token: '{REFRESH_TOKEN}'
+};
+
+auth0.tokens.revokeRefreshToken(data, function (err, _) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Do stuff.
+});
+
+
+
+
+
+
@@ -388,7 +1368,7 @@ Parameters:
diff --git a/docs/module-auth.UsersManager.html b/docs/module-auth.UsersManager.html
index e2b175178..c79000d40 100644
--- a/docs/module-auth.UsersManager.html
+++ b/docs/module-auth.UsersManager.html
@@ -24,7 +24,7 @@
@@ -47,7 +47,8 @@
UsersManager
- Provides methods for getting user information and impersonating users.
+ UsersManager
+Provides methods for getting user information and impersonating users.
@@ -1009,7 +1010,7 @@ Example
diff --git a/docs/module-auth.html b/docs/module-auth.html
index 80b90e83f..9abea4ea1 100644
--- a/docs/module-auth.html
+++ b/docs/module-auth.html
@@ -24,7 +24,7 @@
@@ -108,7 +108,7 @@ Classes
diff --git a/docs/module-errors.html b/docs/module-errors.html
index 60ed46bf7..998b07a27 100644
--- a/docs/module-errors.html
+++ b/docs/module-errors.html
@@ -24,7 +24,7 @@
@@ -254,7 +254,7 @@ (st
diff --git a/docs/module-management.BlacklistedTokensManager.html b/docs/module-management.BlacklistedTokensManager.html
index b82c48fad..6ba3c630c 100644
--- a/docs/module-management.BlacklistedTokensManager.html
+++ b/docs/module-management.BlacklistedTokensManager.html
@@ -24,7 +24,7 @@
@@ -991,7 +991,7 @@ Example
diff --git a/docs/module-management.BrandingManager.html b/docs/module-management.BrandingManager.html
index a63d23cf0..2522fd910 100644
--- a/docs/module-management.BrandingManager.html
+++ b/docs/module-management.BrandingManager.html
@@ -24,7 +24,7 @@
@@ -1770,7 +1770,7 @@ Example
diff --git a/docs/module-management.ClientGrantsManager.html b/docs/module-management.ClientGrantsManager.html
index f7671a159..53515c8ad 100644
--- a/docs/module-management.ClientGrantsManager.html
+++ b/docs/module-management.ClientGrantsManager.html
@@ -24,7 +24,7 @@
@@ -1636,7 +1636,7 @@ Example
diff --git a/docs/module-management.ClientsManager.html b/docs/module-management.ClientsManager.html
index 7fee17ad6..9f21a56b2 100644
--- a/docs/module-management.ClientsManager.html
+++ b/docs/module-management.ClientsManager.html
@@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@ Example
diff --git a/docs/module-management.ConnectionsManager.html b/docs/module-management.ConnectionsManager.html
index 90126eaf0..6e271162b 100644
--- a/docs/module-management.ConnectionsManager.html
+++ b/docs/module-management.ConnectionsManager.html
@@ -24,7 +24,7 @@
@@ -2269,7 +2269,7 @@ Example
diff --git a/docs/module-management.CustomDomainsManager.html b/docs/module-management.CustomDomainsManager.html
index cffe008c4..29f8fe58d 100644
--- a/docs/module-management.CustomDomainsManager.html
+++ b/docs/module-management.CustomDomainsManager.html
@@ -24,7 +24,7 @@
@@ -1731,7 +1731,7 @@ Example
diff --git a/docs/module-management.DeviceCredentialsManager.html b/docs/module-management.DeviceCredentialsManager.html
index a9fa3e060..065f7baad 100644
--- a/docs/module-management.DeviceCredentialsManager.html
+++ b/docs/module-management.DeviceCredentialsManager.html
@@ -24,7 +24,7 @@
@@ -1215,7 +1215,7 @@ Example
diff --git a/docs/module-management.EmailProviderManager.html b/docs/module-management.EmailProviderManager.html
index 4f7af385e..257926395 100644
--- a/docs/module-management.EmailProviderManager.html
+++ b/docs/module-management.EmailProviderManager.html
@@ -24,7 +24,7 @@
@@ -1480,7 +1480,7 @@ Example
diff --git a/docs/module-management.EmailTemplatesManager.html b/docs/module-management.EmailTemplatesManager.html
index 4e8b17ab0..284faee7f 100644
--- a/docs/module-management.EmailTemplatesManager.html
+++ b/docs/module-management.EmailTemplatesManager.html
@@ -24,7 +24,7 @@
@@ -1304,7 +1304,7 @@ Example
diff --git a/docs/module-management.GrantsManager.html b/docs/module-management.GrantsManager.html
index 603acc8db..9a03d5727 100644
--- a/docs/module-management.GrantsManager.html
+++ b/docs/module-management.GrantsManager.html
@@ -24,7 +24,7 @@
@@ -842,7 +842,7 @@ deleteGran
Example
diff --git a/docs/module-management.GuardianManager.html b/docs/module-management.GuardianManager.html
index 6f3b2af40..73ee47b07 100644
--- a/docs/module-management.GuardianManager.html
+++ b/docs/module-management.GuardianManager.html
@@ -24,7 +24,7 @@
@@ -4920,7 +4920,7 @@ Example
diff --git a/docs/module-management.HooksManager.html b/docs/module-management.HooksManager.html
index c856e6fff..d709e4ec8 100644
--- a/docs/module-management.HooksManager.html
+++ b/docs/module-management.HooksManager.html
@@ -24,7 +24,7 @@
@@ -3099,7 +3099,7 @@ Example
diff --git a/docs/module-management.JobsManager.html b/docs/module-management.JobsManager.html
index 518826921..c7e81e430 100644
--- a/docs/module-management.JobsManager.html
+++ b/docs/module-management.JobsManager.html
@@ -24,7 +24,7 @@
@@ -890,7 +890,7 @@ errorsSource:
Parameters:
+
+
+ organization_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Organization ID
+
+
+
+
+
+
client_id
@@ -3109,7 +3145,7 @@ Example
diff --git a/docs/module-management.LogStreamsManager.html b/docs/module-management.LogStreamsManager.html
index 228787292..4a5a59e7e 100644
--- a/docs/module-management.LogStreamsManager.html
+++ b/docs/module-management.LogStreamsManager.html
@@ -24,7 +24,7 @@
@@ -1763,7 +1763,7 @@ Example
diff --git a/docs/module-management.LogsManager.html b/docs/module-management.LogsManager.html
index f7a3452c2..048122fa6 100644
--- a/docs/module-management.LogsManager.html
+++ b/docs/module-management.LogsManager.html
@@ -24,7 +24,7 @@
@@ -1286,7 +1286,7 @@ Example
diff --git a/docs/module-management.ManagementClient.html b/docs/module-management.ManagementClient.html
index 0d6dd77c3..16bf56466 100644
--- a/docs/module-management.ManagementClient.html
+++ b/docs/module-management.ManagementClient.html
@@ -24,7 +24,7 @@
@@ -106,7 +106,7 @@ new M
blac
brandingSource:
clientGra
clientsSource:
connection
customDo
devi
emailPro
emailTe
grantsSource:
guardianSource:
hooksSource:
jobsSource:
logsSource:
logStreams<
migrations<
Type:
+
+
+
+
+
+organizations :OrganizationsManager
+
+
+
+
+
+ Organizations Manager
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
@@ -1958,7 +2032,7 @@ promptsSource:
resour
rolesSource:
rulesSource:
rulesConf
statsSource:
tenantSource:
ticketsSource:
userBlocks<
usersSource:
addHookS
a
Source:
assi
assi
blackli
Source:
createCli
crea
creat
cre
cr
Source:
Source:
createHook<
create
c
createRole<
createRule<
createUser<
deleteA
Source:
deleteCli
dele
delet
del
Source:
de
Source:
deleteHook<
delete
d
deleteRole<
deleteRule<
dele
deleteUser<
exportUser
getAcce
ge
g
ge
Source:
getClientSource:
getCli
getClients<
getConne
getConn
getCus
getCu
getDaily
g
getEm
getEm
getGrantsSource:
Source:
Source:
get
Source:
Source:
Source:
ge
getHookSource:
getHooksSource:
getHook
getJobSource:
getLogSource:
getLogsSource:
getLogStr
getMigra
g
get
getR
get
getRoleSource:
getRolesSource:
getRuleSource:
getRulesSource:
getRul
getT
getUserSource:
getUserB
Source:
getUserLog
get
getUserRo
getUsersSource:
getUse
getUser
Parameters:
+
+
+ params.from
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Optional id from which to start selection.
+
+
+
+
+
+
+
+
+ params.take
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ The total amount of entries to retrieve when using the from parameter. Defaults to 50.
+
+
+
+
+
+
cb
@@ -27444,13 +27590,13 @@ Returns:
Examples
var params = {
- id: 'ROLE_ID'
+ id: 'ROLE_ID',
per_page: 50,
page: 0
};
management.getUsersInRole(params, function (err, users) {
@@ -27511,7 +27657,7 @@ importUser
importU
Source:
linkUsersSource:
Source:
remo
Source:
Source:
re
Source:
setRule
unblockUse
unblockUse
unlinkUser
upda
Source:
updateCli
upda
updat
up
u
u