Skip to content

Commit

Permalink
MC-22950: Enable 2FA by default for Admins
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Gorkun committed Feb 27, 2020
1 parent d5c472e commit 1c48716
Show file tree
Hide file tree
Showing 45 changed files with 4 additions and 1,722 deletions.
148 changes: 0 additions & 148 deletions TwoFactorAuth/Api/Data/TrustedInterface.php

This file was deleted.

31 changes: 0 additions & 31 deletions TwoFactorAuth/Api/Data/TrustedSearchResultsInterface.php

This file was deleted.

8 changes: 0 additions & 8 deletions TwoFactorAuth/Api/EngineInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ interface EngineInterface
*/
public function isEnabled(): bool;

/**
* Return true if this provider allows trusted devices
*
* @return bool
* @deprecated Trusted Devices functionality is deprecated.
*/
public function isTrustedDevicesAllowed(): bool;

/**
* Return true on token validation
* @param UserInterface $user
Expand Down
8 changes: 0 additions & 8 deletions TwoFactorAuth/Api/ProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ public function getIcon(): string;
*/
public function isResetAllowed(): bool;

/**
* Return true if this provider allows trusted devices
*
* @return bool
* @deprecated Trusted Devices functionality was removed.
*/
public function isTrustedDevicesAllowed(): bool;

/**
* Reset provider configuration
* @param int $userId
Expand Down
18 changes: 0 additions & 18 deletions TwoFactorAuth/Api/TfaInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,11 @@

namespace Magento\TwoFactorAuth\Api;

use Magento\TwoFactorAuth\Api\Data\TrustedInterface;

/**
* 2FA configuration manager.
*/
interface TfaInterface
{
/**
* Enabled field
*
* @deprecated 2FA cannot be disabled anymore.
*/
public const XML_PATH_ENABLED = 'twofactorauth/general/enabled';

/**
* Forced providers fields
*/
Expand Down Expand Up @@ -74,15 +65,6 @@ public function getProviderByCode(string $code): ?ProviderInterface;
*/
public function getAllEnabledProviders(): array;

/**
* Return a list of trusted devices for given user id
*
* @param int $userId
* @return \Magento\TwoFactorAuth\Api\ProviderInterface[]
* @deprecated Trusted Devices functionality was removed.
*/
public function getTrustedDevices(int $userId): array;

/**
* Get allowed URLs
* @return array
Expand Down
60 changes: 0 additions & 60 deletions TwoFactorAuth/Api/TrustedManagerInterface.php

This file was deleted.

65 changes: 0 additions & 65 deletions TwoFactorAuth/Api/TrustedRepositoryInterface.php

This file was deleted.

Loading

0 comments on commit 1c48716

Please sign in to comment.