HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/komma.pro/vendor/behat/mink/driver-testsuite/web-fixtures/basic_auth.php
<?php
$username = isset($_SERVER['PHP_AUTH_USER']) ? $_SERVER['PHP_AUTH_USER'] : false;
$password = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : false;

if ($username == 'mink-user' && $password == 'mink-password') {
    echo 'is authenticated';
} else {
    header('WWW-Authenticate: Basic realm="Mink Testing Area"');
    header('HTTP/1.0 401 Unauthorized');

    echo 'is not authenticated';
}