FOF30\TransparentAuthentication\TransparentAuthentication::setTotpKey PHP Метод

setTotpKey() публичный Метод

Set the secret key for the TOTP in the Auth_HTTPBasicAuth_TOTP method
public setTotpKey ( string $totpKey )
$totpKey string
    public function setTotpKey($totpKey)
    {
        $this->totpKey = $totpKey;
    }

Usage Example

 protected function setUp()
 {
     parent::setUp();
     $this->auth = new TransparentAuthentication(static::$container);
     $this->auth->setAuthenticationMethods(array(1, 2, 3, 4, 5));
     $this->auth->setBasicAuthUsername('FOF30user');
     $this->auth->setQueryParam('testAuth');
     $this->auth->setQueryParamPassword('FOF30Password');
     $this->auth->setQueryParamUsername('FOF30Username');
     $this->auth->setTimeStep(30);
     $this->auth->setTotpKey(self::$totpKey);
 }