Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions TwoFactorAuth/Api/AdminTokenServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* Obtain basic information about the user required to setup or use 2fa
* @api
*/
interface AdminTokenServiceInterface extends OriginalTokenServiceInterface
{
Expand Down
1 change: 1 addition & 0 deletions TwoFactorAuth/Api/AuthyAuthenticateInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

/**
* Represents the authy provider authentication
* @api
*/
interface AuthyAuthenticateInterface
{
Expand Down
3 changes: 2 additions & 1 deletion TwoFactorAuth/Api/AuthyConfigureInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

/**
* Represents the authy provider
* @api
*/
interface AuthyConfigureInterface
{
Expand All @@ -21,7 +22,7 @@ interface AuthyConfigureInterface
*
* @param string $tfaToken
* @param AuthyDeviceInterface $deviceData
* @return \Magento\TwoFactorAuth\Api\Data\AuthyRegistrationPromptResponseInterface
* @return ResponseInterface
*/
public function sendDeviceRegistrationPrompt(
string $tfaToken,
Expand Down
2 changes: 1 addition & 1 deletion TwoFactorAuth/Api/CountryRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

/**
* Countries repository
*
* @api
* @SuppressWarnings(PHPMD.ShortVariable)
*/
interface CountryRepositoryInterface
Expand Down
10 changes: 6 additions & 4 deletions TwoFactorAuth/Api/Data/AdminTokenResponseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
namespace Magento\TwoFactorAuth\Api\Data;

use Magento\Framework\Api\ExtensibleDataInterface;
use Magento\TwoFactorAuth\Api\ProviderInterface;

/**
* Represents the response to the new admin token response
* @api
*/
interface AdminTokenResponseInterface extends ExtensibleDataInterface
{
Expand Down Expand Up @@ -63,14 +65,14 @@ public function setMessage(string $value): void;
/**
* Get the providers
*
* @return \Magento\TwoFactorAuth\Api\ProviderInterface[]
* @return ProviderInterface[]
*/
public function getActiveProviders(): array;

/**
* Set the providers
*
* @param \Magento\TwoFactorAuth\Api\ProviderInterface[] $value
* @param ProviderInterface[] $value
* @return void
*/
public function setActiveProviders(array $value): void;
Expand All @@ -80,14 +82,14 @@ public function setActiveProviders(array $value): void;
*
* Used fully qualified namespaces in annotations for proper work of extension interface/class code generation
*
* @return \Magento\TwoFactorAuth\Api\Data\AdminTokenResponseExtensionInterface|null
* @return AdminTokenResponseExtensionInterface|null
*/
public function getExtensionAttributes(): ?AdminTokenResponseExtensionInterface;

/**
* Set an extension attributes object
*
* @param \Magento\TwoFactorAuth\Api\Data\AdminTokenResponseExtensionInterface $extensionAttributes
* @param AdminTokenResponseExtensionInterface $extensionAttributes
* @return void
*/
public function setExtensionAttributes(
Expand Down
5 changes: 3 additions & 2 deletions TwoFactorAuth/Api/Data/AuthyDeviceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* Authy device data interface
* @api
*/
interface AuthyDeviceInterface extends ExtensibleDataInterface
{
Expand Down Expand Up @@ -89,14 +90,14 @@ public function setMethod(string $value): void;
*
* Used fully qualified namespaces in annotations for proper work of extension interface/class code generation
*
* @return \Magento\TwoFactorAuth\Api\Data\AuthyDeviceExtensionInterface|null
* @return AuthyDeviceExtensionInterface|null
*/
public function getExtensionAttributes(): ?AuthyDeviceExtensionInterface;

/**
* Set an extension attributes object
*
* @param \Magento\TwoFactorAuth\Api\Data\AuthyDeviceExtensionInterface $extensionAttributes
* @param AuthyDeviceExtensionInterface $extensionAttributes
* @return void
*/
public function setExtensionAttributes(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* Response for device registration prompt
* @api
*/
interface AuthyRegistrationPromptResponseInterface extends ExtensibleDataInterface
{
Expand Down Expand Up @@ -60,14 +61,14 @@ public function setExpirationSeconds(int $value): void;
*
* Used fully qualified namespaces in annotations for proper work of extension interface/class code generation
*
* @return \Magento\TwoFactorAuth\Api\Data\AuthyRegistrationPromptResponseExtensionInterface|null
* @return AuthyRegistrationPromptResponseExtensionInterface|null
*/
public function getExtensionAttributes(): ?AuthyRegistrationPromptResponseExtensionInterface;

/**
* Set an extension attributes object
*
* @param \Magento\TwoFactorAuth\Api\Data\AuthyRegistrationPromptResponseExtensionInterface $extensionAttributes
* @param AuthyRegistrationPromptResponseExtensionInterface $extensionAttributes
* @return void
*/
public function setExtensionAttributes(
Expand Down
5 changes: 3 additions & 2 deletions TwoFactorAuth/Api/Data/CountryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* Country entity interface
* @api
*/
interface CountryInterface extends ExtensibleDataInterface
{
Expand Down Expand Up @@ -95,14 +96,14 @@ public function setDialCode(string $value): void;
*
* Used fully qualified namespaces in annotations for proper work of extension interface/class code generation
*
* @return \Magento\TwoFactorAuth\Api\Data\CountryExtensionInterface|null
* @return CountryExtensionInterface|null
*/
public function getExtensionAttributes(): ?CountryExtensionInterface;

/**
* Set an extension attributes object
*
* @param \Magento\TwoFactorAuth\Api\Data\CountryExtensionInterface $extensionAttributes
* @param CountryExtensionInterface $extensionAttributes
*/
public function setExtensionAttributes(
CountryExtensionInterface $extensionAttributes
Expand Down
1 change: 1 addition & 0 deletions TwoFactorAuth/Api/Data/CountrySearchResultsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* Represent country search results
* @api
*/
interface CountrySearchResultsInterface extends SearchResultsInterface
{
Expand Down
5 changes: 3 additions & 2 deletions TwoFactorAuth/Api/Data/DuoDataInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* Represents the data needed to use duo
* @api
*/
interface DuoDataInterface extends ExtensibleDataInterface
{
Expand Down Expand Up @@ -59,14 +60,14 @@ public function setApiHostname(string $value): void;
*
* Used fully qualified namespaces in annotations for proper work of extension interface/class code generation
*
* @return \Magento\TwoFactorAuth\Api\Data\DuoDataExtensionInterface|null
* @return DuoDataExtensionInterface|null
*/
public function getExtensionAttributes(): ?DuoDataExtensionInterface;

/**
* Set an extension attributes object
*
* @param \Magento\TwoFactorAuth\Api\Data\DuoDataExtensionInterface $extensionAttributes
* @param DuoDataExtensionInterface $extensionAttributes
* @return void
*/
public function setExtensionAttributes(
Expand Down
5 changes: 3 additions & 2 deletions TwoFactorAuth/Api/Data/GoogleAuthenticateInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* Represents the Google authentication data
* @api
*/
interface GoogleAuthenticateInterface extends ExtensibleDataInterface
{
Expand All @@ -37,14 +38,14 @@ public function setOtp(string $value): void;
*
* Used fully qualified namespaces in annotations for proper work of extension interface/class code generation
*
* @return \Magento\TwoFactorAuth\Api\Data\GoogleAuthenticateExtensionInterface|null
* @return GoogleAuthenticateExtensionInterface|null
*/
public function getExtensionAttributes(): ?GoogleAuthenticateExtensionInterface;

/**
* Set an extension attributes object
*
* @param \Magento\TwoFactorAuth\Api\Data\GoogleAuthenticateExtensionInterface $extensionAttributes
* @param GoogleAuthenticateExtensionInterface $extensionAttributes
*/
public function setExtensionAttributes(
GoogleAuthenticateExtensionInterface $extensionAttributes
Expand Down
5 changes: 3 additions & 2 deletions TwoFactorAuth/Api/Data/GoogleConfigureInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* Google configuration data interface
* @api
*/
interface GoogleConfigureInterface extends ExtensibleDataInterface
{
Expand Down Expand Up @@ -59,14 +60,14 @@ public function setSecretCode(string $value): void;
*
* Used fully qualified namespaces in annotations for proper work of extension interface/class code generation
*
* @return \Magento\TwoFactorAuth\Api\Data\GoogleConfigureExtensionInterface|null
* @return GoogleConfigureExtensionInterface|null
*/
public function getExtensionAttributes(): ?GoogleConfigureExtensionInterface;

/**
* Set an extension attributes object
*
* @param \Magento\TwoFactorAuth\Api\Data\GoogleConfigureExtensionInterface $extensionAttributes
* @param GoogleConfigureExtensionInterface $extensionAttributes
* @return void
*/
public function setExtensionAttributes(
Expand Down
5 changes: 3 additions & 2 deletions TwoFactorAuth/Api/Data/U2fWebAuthnRequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* Represents a WebAuthn dataset
* @api
*/
interface U2fWebAuthnRequestInterface extends ExtensibleDataInterface
{
Expand All @@ -37,14 +38,14 @@ public function setCredentialRequestOptionsJson(string $value): void;
*
* Used fully qualified namespaces in annotations for proper work of extension interface/class code generation
*
* @return \Magento\TwoFactorAuth\Api\Data\U2fWebAuthnRequestExtensionInterface|null
* @return U2fWebAuthnRequestExtensionInterface|null
*/
public function getExtensionAttributes(): ?U2fWebAuthnRequestExtensionInterface;

/**
* Set an extension attributes object
*
* @param \Magento\TwoFactorAuth\Api\Data\U2fWebAuthnRequestExtensionInterface $extensionAttributes
* @param U2fWebAuthnRequestExtensionInterface $extensionAttributes
* @return void
*/
public function setExtensionAttributes(
Expand Down
5 changes: 3 additions & 2 deletions TwoFactorAuth/Api/Data/UserConfigInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* User configuration interface
* @api
*/
interface UserConfigInterface extends ExtensibleDataInterface
{
Expand Down Expand Up @@ -95,14 +96,14 @@ public function setDefaultProvider(string $value): void;
*
* Used fully qualified namespaces in annotations for proper work of extension interface/class code generation
*
* @return \Magento\TwoFactorAuth\Api\Data\UserConfigExtensionInterface|null
* @return UserConfigExtensionInterface|null
*/
public function getExtensionAttributes(): ?UserConfigExtensionInterface;

/**
* Set an extension attributes object
*
* @param \Magento\TwoFactorAuth\Api\Data\UserConfigExtensionInterface $extensionAttributes
* @param UserConfigExtensionInterface $extensionAttributes
*/
public function setExtensionAttributes(UserConfigExtensionInterface $extensionAttributes): void;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* User config search result
* @api
*/
interface UserConfigSearchResultsInterface extends SearchResultsInterface
{
Expand Down
3 changes: 2 additions & 1 deletion TwoFactorAuth/Api/DuoAuthenticateInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* Represents authentication for the duo security provider
* @api
*/
interface DuoAuthenticateInterface
{
Expand All @@ -20,7 +21,7 @@ interface DuoAuthenticateInterface
*
* @param string $username
* @param string $password
* @return \Magento\TwoFactorAuth\Api\Data\DuoDataInterface
* @return DuoDataInterface
*/
public function getAuthenticateData(
string $username,
Expand Down
3 changes: 2 additions & 1 deletion TwoFactorAuth/Api/DuoConfigureInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@

/**
* Represents configuration for the duo security provider
* @api
*/
interface DuoConfigureInterface
{
/**
* Get the information required to configure duo
*
* @param string $tfaToken
* @return \Magento\TwoFactorAuth\Api\Data\DuoDataInterface
* @return DuoDataInterface
*/
public function getConfigurationData(
string $tfaToken
Expand Down
1 change: 1 addition & 0 deletions TwoFactorAuth/Api/EngineInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* 2FA engine interface
* @api
*/
interface EngineInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

/**
* Occurs when failed to notify a user.
* @api
*/
interface NotificationExceptionInterface extends \Throwable
{
Expand Down
1 change: 1 addition & 0 deletions TwoFactorAuth/Api/GoogleAuthenticateInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

/**
* Represents google authentication
* @api
*/
interface GoogleAuthenticateInterface
{
Expand Down
5 changes: 3 additions & 2 deletions TwoFactorAuth/Api/GoogleConfigureInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@

/**
* Represents the google provider
* @api
*/
interface GoogleConfigureInterface
{
/**
* Get the information required to configure google
*
* @param string $tfaToken
* @return \Magento\TwoFactorAuth\Api\Data\GoogleConfigureInterface
* @return Data\GoogleConfigureInterface
*/
public function getConfigurationData(
string $tfaToken
): \Magento\TwoFactorAuth\Api\Data\GoogleConfigureInterface;
): Data\GoogleConfigureInterface;

/**
* Activate the provider and get an admin token
Expand Down
Loading