You are here

public function Session::setBasicAuth in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Session.php \Behat\Mink\Session::setBasicAuth()

Sets HTTP Basic authentication parameters.

Parameters

string|Boolean $user user name or false to disable authentication:

string $password password:

File

vendor/behat/mink/src/Session.php, line 152

Class

Session
Mink session.

Namespace

Behat\Mink

Code

public function setBasicAuth($user, $password = '') {
  $this->driver
    ->setBasicAuth($user, $password);
}