Your IP : 216.73.217.13


Current Path : /home/rtorresani/www/vendor/magento/module-two-factor-auth/Api/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-two-factor-auth/Api/DuoAuthenticateInterface.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

declare(strict_types=1);

namespace Magento\TwoFactorAuth\Api;

use Magento\TwoFactorAuth\Api\Data\DuoDataInterface;

/**
 * Represents authentication for the duo security provider
 *
 * @api
 */
interface DuoAuthenticateInterface
{
    /**
     * Get the information required to configure duo
     *
     * @param string $username
     * @param string $password
     * @return \Magento\TwoFactorAuth\Api\Data\DuoDataInterface
     */
    public function getAuthenticateData(
        string $username,
        string $password
    ): DuoDataInterface;

    /**
     * Authenticate and get an admin token
     *
     * @param string $username
     * @param string $password
     * @param string $signatureResponse
     * @return string
     */
    public function createAdminAccessTokenWithCredentials(
        string $username,
        string $password,
        string $signatureResponse
    ): string;
}