Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Session.php

function Session::setBasicAuth

Sets HTTP Basic authentication parameters.

Parameters

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

string $password password:

Return value

void

File

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

Class

Session
Mink session.

Namespace

Behat\Mink

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal