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

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

Set the enabled authentication methods
public setAuthenticationMethods ( array $authenticationMethods )
$authenticationMethods array
    public function setAuthenticationMethods($authenticationMethods)
    {
        $this->authenticationMethods = $authenticationMethods;
    }

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);
 }