diff --git a/src/management/__generated/managers/clients-manager.ts b/src/management/__generated/managers/clients-manager.ts
index e032431fd..867b71a76 100644
--- a/src/management/__generated/managers/clients-manager.ts
+++ b/src/management/__generated/managers/clients-manager.ts
@@ -44,12 +44,10 @@ export class ClientsManager extends BaseAPI {
* Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude
* may also be specified. Note:
*
- * -
- *
client_id
, app_type
, name
, and description
can be retrieved with
+ * client_id
, app_type
, name
, and description
can be retrieved with
* any scope.
*
- * -
- *
callbacks
, oidc_backchannel_logout
, allowed_origins
,
+ * callbacks
, oidc_backchannel_logout
, allowed_origins
,
* web_origins
, tenant
, global
, config_route
,
* callback_url_template
, jwt_configuration
,
* jwt_configuration.lifetime_in_seconds
, jwt_configuration.secret_encoded
,
@@ -65,8 +63,7 @@ export class ClientsManager extends BaseAPI {
* organization_require_behavior
properties can only be retrieved with the read:clients
or
* read:client_keys
scope.
*
- * -
- *
encryption_key
, encryption_key.pub
, encryption_key.cert
,
+ * encryption_key
, encryption_key.pub
, encryption_key.cert
,
* client_secret
, and signing_key
properties can only be retrieved with the
* read:client_keys
scope.
*
@@ -130,12 +127,10 @@ export class ClientsManager extends BaseAPI {
/**
* Retrieve client details. A list of fields to include or exclude may also be specified. Note:
*
- * -
- *
client_id
, app_type
, name
, and description
can be retrieved with
+ * client_id
, app_type
, name
, and description
can be retrieved with
* the any of the scopes.
*
- * -
- *
callbacks
, oidc_backchannel_logout
, allowed_origins
,
+ * callbacks
, oidc_backchannel_logout
, allowed_origins
,
* web_origins
, tenant
, global
, config_route
,
* callback_url_template
, jwt_configuration
,
* jwt_configuration.lifetime_in_seconds
, jwt_configuration.secret_encoded
,
@@ -151,8 +146,7 @@ export class ClientsManager extends BaseAPI {
* organization_require_behavior
properties can only be retrieved with the read:clients
or
* read:client_keys
scope.
*
- * -
- *
encryption_key
, encryption_key.pub
, encryption_key.cert
,
+ * encryption_key
, encryption_key.pub
, encryption_key.cert
,
* client_secret
, and signing_key
properties can only be retrieved with the
* read:client_keys
scope.
*
diff --git a/src/management/__generated/managers/grants-manager.ts b/src/management/__generated/managers/grants-manager.ts
index dee94785b..33f8609b1 100644
--- a/src/management/__generated/managers/grants-manager.ts
+++ b/src/management/__generated/managers/grants-manager.ts
@@ -4,8 +4,8 @@ import type {
GetGrants200Response,
GetGrants200ResponseOneOf,
UserGrant,
- DeleteRequest,
DeleteGrantsByIdRequest,
+ DeleteGrantsByUserIdRequest,
GetGrantsRequest,
} from '../models/index.js';
@@ -17,26 +17,20 @@ const { BaseAPI } = runtime;
export class GrantsManager extends BaseAPI {
/**
* Delete a grant associated with your account.
- * Delete a grant by user_id
+ * Delete a grant by id
*
* @throws {RequiredError}
*/
- async deleteByUserId(
- requestParameters: DeleteRequest = {},
+ async delete(
+ requestParameters: DeleteGrantsByIdRequest,
initOverrides?: InitOverride
): Promise> {
- const queryParameters = runtime.applyQueryParams(requestParameters, [
- {
- key: 'user_id',
- config: {},
- },
- ]);
+ runtime.validateRequiredRequestParams(requestParameters, ['id']);
const response = await this.request(
{
- path: `/grants/`,
+ path: `/grants/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
method: 'DELETE',
- query: queryParameters,
},
initOverrides
);
@@ -46,20 +40,26 @@ export class GrantsManager extends BaseAPI {
/**
* Delete a grant associated with your account.
- * Delete a grant by id
+ * Delete a grant by user_id
*
* @throws {RequiredError}
*/
- async delete(
- requestParameters: DeleteGrantsByIdRequest,
+ async deleteByUserId(
+ requestParameters: DeleteGrantsByUserIdRequest = {},
initOverrides?: InitOverride
): Promise> {
- runtime.validateRequiredRequestParams(requestParameters, ['id']);
+ const queryParameters = runtime.applyQueryParams(requestParameters, [
+ {
+ key: 'user_id',
+ config: {},
+ },
+ ]);
const response = await this.request(
{
- path: `/grants/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
+ path: `/grants/`,
method: 'DELETE',
+ query: queryParameters,
},
initOverrides
);
diff --git a/src/management/__generated/managers/users-manager.ts b/src/management/__generated/managers/users-manager.ts
index 69d32fa1d..be4adbe2d 100644
--- a/src/management/__generated/managers/users-manager.ts
+++ b/src/management/__generated/managers/users-manager.ts
@@ -35,6 +35,7 @@ import type {
GetOrganizationMemberRoles200ResponseOneOf,
GetOrganizationMemberRoles200ResponseOneOfInner,
GetUsers200ResponseOneOf,
+ DeleteAuthenticationMethodsRequest,
DeleteAuthenticationMethodsByAuthenticationMethodIdRequest,
DeleteAuthenticatorsRequest,
DeleteMultifactorByProviderRequest,
@@ -68,6 +69,31 @@ const { BaseAPI } = runtime;
*
*/
export class UsersManager extends BaseAPI {
+ /**
+ * Deletes all authentication methods for the given user
+ *
+ * @throws {RequiredError}
+ */
+ async deleteAuthenticationMethods(
+ requestParameters: DeleteAuthenticationMethodsRequest,
+ initOverrides?: InitOverride
+ ): Promise> {
+ runtime.validateRequiredRequestParams(requestParameters, ['id']);
+
+ const response = await this.request(
+ {
+ path: `/users/{id}/authentication-methods`.replace(
+ '{id}',
+ encodeURIComponent(String(requestParameters.id))
+ ),
+ method: 'DELETE',
+ },
+ initOverrides
+ );
+
+ return runtime.VoidApiResponse.fromResponse(response);
+ }
+
/**
* Deletes an authentication method by ID
*
@@ -817,7 +843,7 @@ export class UsersManager extends BaseAPI {
}
/**
- * Creates an authentication method for a given user.
+ * Creates an authentication method for a given user. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed.
*
* @throws {RequiredError}
*/
diff --git a/src/management/__generated/models/index.ts b/src/management/__generated/models/index.ts
index e08a3aa94..8bc5a2a01 100644
--- a/src/management/__generated/models/index.ts
+++ b/src/management/__generated/models/index.ts
@@ -113,6 +113,11 @@ export interface Client {
*
*/
sso_disabled?: boolean;
+ /**
+ * Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false).
+ *
+ */
+ cross_origin_authentication?: boolean;
/**
* URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page.
*
@@ -147,7 +152,7 @@ export interface Client {
*/
token_endpoint_auth_method?: ClientTokenEndpointAuthMethodEnum;
/**
- * Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/\()><@ [Tab] [Space]
+ * Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/\()<>@ [Tab] [Space]
*
*/
client_metadata?: { [key: string]: any };
@@ -885,7 +890,7 @@ export interface ClientCreate {
* Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false).
*
*/
- cross_origin_auth?: boolean;
+ cross_origin_authentication?: boolean;
/**
* URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page.
*
@@ -920,7 +925,7 @@ export interface ClientCreate {
*/
addons?: ClientAddons;
/**
- * Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/\()><@ [Tab] [Space]
+ * Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/\()<>@ [Tab] [Space]
*
*/
client_metadata?: { [key: string]: any };
@@ -1429,6 +1434,11 @@ export interface ClientUpdate {
*
*/
sso?: boolean;
+ /**
+ * true
if this client can be used to make cross-origin authentication requests, false
otherwise if cross origin is disabled
+ *
+ */
+ cross_origin_authentication?: boolean;
/**
* URL for the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page.
*
@@ -1481,7 +1491,7 @@ export interface ClientUpdate {
*/
addons?: ClientUpdateAddons | null;
/**
- * Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/\()><@ [Tab] [Space]
+ * Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/\()<>@ [Tab] [Space]
*
*/
client_metadata?: { [key: string]: any };
@@ -2514,7 +2524,7 @@ export interface DraftUpdate {
*/
export interface EmailProvider {
/**
- * Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `ses`, `sparkpost`, or `smtp`.
+ * Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `ses`, `sparkpost`, `smtp`, `azure_cs`, or `ms365`.
*
*/
name?: string;
@@ -3091,11 +3101,13 @@ export interface GetActions200ResponseActionsInnerDependenciesInner {
registry_url?: string;
}
/**
- * Integration defines a self contained functioning unit which partners
publish. A partner may create one or many of these integrations.
+ * Integration defines a self contained functioning unit which partners
+ * publish. A partner may create one or many of these integrations.
*/
export interface GetActions200ResponseActionsInnerIntegration {
/**
- * id is a system generated GUID. This same ID is designed to be federated in
all the applicable localities.
+ * id is a system generated GUID. This same ID is designed to be federated in
+ * all the applicable localities.
*
*/
id?: string;
@@ -3110,17 +3122,23 @@ export interface GetActions200ResponseActionsInnerIntegration {
*/
url_slug?: string;
/**
- * partner_id is the foreign key reference to the partner account this
integration belongs to.
+ * partner_id is the foreign key reference to the partner account this
+ * integration belongs to.
*
*/
partner_id?: string;
/**
- * name is the integration name, which will be used for display purposes in
the marketplace.
To start we're going to make sure the display name is at least 3
characters. Can adjust this easily later.
+ * name is the integration name, which will be used for display purposes in
+ * the marketplace.
+ *
+ * To start we're going to make sure the display name is at least 3
+ * characters. Can adjust this easily later.
*
*/
name?: string;
/**
- * description adds more text for the integration name -- also relevant for
the marketplace listing.
+ * description adds more text for the integration name -- also relevant for
+ * the marketplace listing.
*
*/
description?: string;
@@ -3184,7 +3202,8 @@ export interface GetActions200ResponseActionsInnerIntegrationCurrentRelease {
*/
semver?: GetActions200ResponseActionsInnerIntegrationCurrentReleaseSemver;
/**
- * required_secrets declares all the necessary secrets for an integration to
work.
+ * required_secrets declares all the necessary secrets for an integration to
+ * work.
*
*/
required_secrets?: Array;
@@ -3195,7 +3214,12 @@ export interface GetActions200ResponseActionsInnerIntegrationCurrentRelease {
required_configuration?: Array;
}
/**
- * Param are form input values, primarily utilized when specifying secrets and
configuration values for actions.
These are especially important for partner integrations -- but can be
exposed to tenant admins as well if they want to parameterize their custom
actions.
+ * Param are form input values, primarily utilized when specifying secrets and
+ * configuration values for actions.
+ *
+ * These are especially important for partner integrations -- but can be
+ * exposed to tenant admins as well if they want to parameterize their custom
+ * actions.
*/
export interface GetActions200ResponseActionsInnerIntegrationCurrentReleaseRequiredSecretsInner {
/**
@@ -3453,7 +3477,7 @@ export interface GetAuthenticationMethods200ResponseOneOfAuthenticatorsInner {
* The authentication method preferred for phone authenticators.
*
*/
- preferred_authentication_method?: string;
+ preferred_authentication_method?: GetAuthenticationMethods200ResponseOneOfAuthenticatorsInnerPreferredAuthenticationMethodEnum;
/**
* The ID of a linked authentication method. Linked authentication methods will be deleted together.
*
@@ -3510,6 +3534,14 @@ export const GetAuthenticationMethods200ResponseOneOfAuthenticatorsInnerTypeEnum
export type GetAuthenticationMethods200ResponseOneOfAuthenticatorsInnerTypeEnum =
(typeof GetAuthenticationMethods200ResponseOneOfAuthenticatorsInnerTypeEnum)[keyof typeof GetAuthenticationMethods200ResponseOneOfAuthenticatorsInnerTypeEnum];
+export const GetAuthenticationMethods200ResponseOneOfAuthenticatorsInnerPreferredAuthenticationMethodEnum =
+ {
+ sms: 'sms',
+ voice: 'voice',
+ } as const;
+export type GetAuthenticationMethods200ResponseOneOfAuthenticatorsInnerPreferredAuthenticationMethodEnum =
+ (typeof GetAuthenticationMethods200ResponseOneOfAuthenticatorsInnerPreferredAuthenticationMethodEnum)[keyof typeof GetAuthenticationMethods200ResponseOneOfAuthenticatorsInnerPreferredAuthenticationMethodEnum];
+
/**
*
*/
@@ -3722,7 +3754,17 @@ export interface GetBranding200ResponseColors {
page_background?: GetBranding200ResponseColorsPageBackground;
}
/**
- * Page Background Color or Gradient.
Property contains either null
to unset, a solid color as a string value #FFFFFF
, or a gradient as an object.
{
type: 'linear-gradient',
start: '#FFFFFF',
end: '#000000',
angle_deg: 35
}
+ * Page Background Color or Gradient.
+ * Property contains either null
to unset, a solid color as a string value #FFFFFF
, or a gradient as an object.
+ *
+ *
+ * {
+ * type: 'linear-gradient',
+ * start: '#FFFFFF',
+ * end: '#000000',
+ * angle_deg: 35
+ * }
+ *
*/
export type GetBranding200ResponseColorsPageBackground = string | { [key: string]: any };
/**
@@ -6003,21 +6045,6 @@ export interface PatchAuthenticationMethodsByAuthenticationMethodIdRequest {
*
*/
name?: string;
- /**
- * Base32 encoded secret for TOTP generation.
- *
- */
- totp_secret?: string;
- /**
- * Applies to email authentication methods only. The email address used to send verification messages.
- *
- */
- email?: string;
- /**
- * Applies to phone authentication methods only. The destination phone number used to send verification codes via text and voice.
- *
- */
- phone_number?: string;
/**
* Preferred phone authentication method
*
@@ -6151,17 +6178,20 @@ export interface PatchBreachedPasswordDetectionRequest {
*/
enabled?: boolean;
/**
- * Action to take when a breached password is detected during a login.
Possible values: block
, user_notification
, admin_notification
.
+ * Action to take when a breached password is detected during a login.
+ * Possible values: block
, user_notification
, admin_notification
.
*
*/
shields?: Array;
/**
- * When "admin_notification" is enabled, determines how often email notifications are sent.
Possible values: immediately
, daily
, weekly
, monthly
.
+ * When "admin_notification" is enabled, determines how often email notifications are sent.
+ * Possible values: immediately
, daily
, weekly
, monthly
.
*
*/
admin_notification_frequency?: Array;
/**
- * The subscription level for breached password detection methods. Use "enhanced" to enable Credential Guard.
Possible values: standard
, enhanced
.
+ * The subscription level for breached password detection methods. Use "enhanced" to enable Credential Guard.
+ * Possible values: standard
, enhanced
.
*
*/
method?: PatchBreachedPasswordDetectionRequestMethodEnum;
@@ -6207,7 +6237,8 @@ export interface PatchBreachedPasswordDetectionRequestStage {
*/
export interface PatchBreachedPasswordDetectionRequestStagePreUserRegistration {
/**
- * Action to take when a breached password is detected during a signup.
Possible values: block
, admin_notification
.
+ * Action to take when a breached password is detected during a signup.
+ * Possible values: block
, admin_notification
.
*
*/
shields?: Array;
@@ -6230,7 +6261,8 @@ export interface PatchBruteForceProtectionRequest {
*/
enabled?: boolean;
/**
- * Action to take when a brute force protection threshold is violated.
Possible values: block
, user_notification
.
+ * Action to take when a brute force protection threshold is violated.
+ * Possible values: block
, user_notification
.
*
*/
shields?: Array;
@@ -6240,7 +6272,8 @@ export interface PatchBruteForceProtectionRequest {
*/
allowlist?: Array;
/**
- * Account Lockout: Determines whether or not IP address is used when counting failed attempts.
Possible values: count_per_identifier_and_ip
, count_per_identifier
.
+ * Account Lockout: Determines whether or not IP address is used when counting failed attempts.
+ * Possible values: count_per_identifier_and_ip
, count_per_identifier
.
*
*/
mode?: PatchBruteForceProtectionRequestModeEnum;
@@ -6437,7 +6470,7 @@ export interface PatchOrganizationsByIdRequestBranding {
*/
export interface PatchProviderRequest {
/**
- * Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `ses`, `sparkpost`, or `smtp`.
+ * Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `ses`, `sparkpost`, `smtp`, `azure_cs`, or `ms365`.
*
*/
name?: PatchProviderRequestNameEnum;
@@ -6468,6 +6501,8 @@ export const PatchProviderRequestNameEnum = {
ses: 'ses',
sparkpost: 'sparkpost',
smtp: 'smtp',
+ azure_cs: 'azure_cs',
+ ms365: 'ms365',
} as const;
export type PatchProviderRequestNameEnum =
(typeof PatchProviderRequestNameEnum)[keyof typeof PatchProviderRequestNameEnum];
@@ -6482,7 +6517,8 @@ export interface PatchSuspiciousIpThrottlingRequest {
*/
enabled?: boolean;
/**
- * Action to take when a suspicious IP throttling threshold is violated.
Possible values: block
, admin_notification
.
+ * Action to take when a suspicious IP throttling threshold is violated.
+ * Possible values: block
, admin_notification
.
*
*/
shields?: Array;
@@ -8177,7 +8213,7 @@ export interface PostPermissionsRequest {
*/
export interface PostProviderRequest {
/**
- * Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `ses`, `sparkpost`, or `smtp`.
+ * Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `ses`, `sparkpost`, `smtp`, `azure_cs`, or `ms365`.
*
*/
name: PostProviderRequestNameEnum;
@@ -8208,6 +8244,8 @@ export const PostProviderRequestNameEnum = {
ses: 'ses',
sparkpost: 'sparkpost',
smtp: 'smtp',
+ azure_cs: 'azure_cs',
+ ms365: 'ms365',
} as const;
export type PostProviderRequestNameEnum =
(typeof PostProviderRequestNameEnum)[keyof typeof PostProviderRequestNameEnum];
@@ -9367,6 +9405,9 @@ export interface TenantSettings {
/**
*/
session_cookie?: TenantSettingsSessionCookie | null;
+ /**
+ */
+ sessions?: TenantSettingsSessions | null;
}
export const TenantSettingsEnabledLocalesEnum = {
@@ -9584,6 +9625,11 @@ export interface TenantSettingsFlags {
*
*/
disable_fields_map_fix?: boolean;
+ /**
+ * Used to allow users to pick what factor to enroll of the available MFA factors.
+ *
+ */
+ mfa_show_factor_list_on_enrollment?: boolean;
}
/**
* Guardian page customization.
@@ -9618,6 +9664,16 @@ export const TenantSettingsSessionCookieModeEnum = {
export type TenantSettingsSessionCookieModeEnum =
(typeof TenantSettingsSessionCookieModeEnum)[keyof typeof TenantSettingsSessionCookieModeEnum];
+/**
+ * Sessions related settings for tenant
+ */
+export interface TenantSettingsSessions {
+ /**
+ * Whether to bypass prompting logic (false) when performing OIDC Logout
+ *
+ */
+ oidc_logout_prompt_enabled?: boolean;
+}
/**
*
*/
@@ -9700,6 +9756,9 @@ export interface TenantSettingsUpdate {
/**
*/
session_cookie?: TenantSettingsSessionCookie | null;
+ /**
+ */
+ sessions?: TenantSettingsSessions | null;
}
export const TenantSettingsUpdateEnabledLocalesEnum = {
@@ -9892,6 +9951,11 @@ export interface TenantSettingsUpdateFlags {
*
*/
disable_fields_map_fix?: boolean;
+ /**
+ * Used to allow users to pick what factor to enroll of the available MFA factors.
+ *
+ */
+ mfa_show_factor_list_on_enrollment?: boolean;
}
export const TenantSettingsUpdateFlagsChangePwdFlowV1Enum = {
@@ -11227,22 +11291,22 @@ export interface GetProviderRequest {
/**
*
*/
-export interface DeleteRequest {
+export interface DeleteGrantsByIdRequest {
/**
- * user_id of the grant to delete.
+ * ID of the grant to delete.
*
*/
- user_id?: string;
+ id: string;
}
/**
*
*/
-export interface DeleteGrantsByIdRequest {
+export interface DeleteGrantsByUserIdRequest {
/**
- * ID of the grant to delete.
+ * user_id of the grant to delete.
*
*/
- id: string;
+ user_id?: string;
}
/**
*
@@ -12532,7 +12596,10 @@ export interface GetUserBlocksRequest {
*/
identifier: string;
/**
- *
If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses.
If true and Brute Force Protection is disabled, will return an empty list.
+ *
+ * If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses.
+ * If true and Brute Force Protection is disabled, will return an empty list.
+ *
*
*/
consider_brute_force_enablement?: boolean;
@@ -12547,11 +12614,24 @@ export interface GetUserBlocksByIdRequest {
*/
id: string;
/**
- *
If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses.
If true and Brute Force Protection is disabled, will return an empty list.
+ *
+ * If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses.
+ * If true and Brute Force Protection is disabled, will return an empty list.
+ *
*
*/
consider_brute_force_enablement?: boolean;
}
+/**
+ *
+ */
+export interface DeleteAuthenticationMethodsRequest {
+ /**
+ * The ID of the user in question.
+ *
+ */
+ id: string;
+}
/**
*
*/
diff --git a/test/management/users.tests.ts b/test/management/users.tests.ts
index da603dfa4..33a73fc80 100644
--- a/test/management/users.tests.ts
+++ b/test/management/users.tests.ts
@@ -1345,6 +1345,23 @@ describe('UsersManager', () => {
});
});
+ describe('#deleteAuthenticationMethods', () => {
+ const params = {
+ id: 'user_id',
+ };
+
+ let scope: nock.Scope;
+
+ beforeEach(() => {
+ scope = nock(API_URL).delete(`/users/${params.id}/authentication-methods`).reply(200);
+ });
+
+ it('should perform a DELETE request to /api/v2/users/{user}/authentication-methods', async () => {
+ await usersManager.deleteAuthenticationMethods(params);
+ expect(scope.isDone()).to.be.true;
+ });
+ });
+
describe('#deleteAuthenticationMethodById', () => {
const params = {
id: 'user_id',