This simple Codeception module allows PhpBrowser to automatically pass HTTP authentication based on configuration.
{
"require": {
"codeception/codeception": "1.8.*",
"ixis/codeception-module-http-auth": "dev-master"
}
}
modules:
enabled:
- PhpBrowser
- HttpAuth
config:
PhpBrowser:
url: 'http://example.com/protected/'
HttpAuth:
username: user
password: password
This module isn't useful for Codeception 2.x, as HTTP authentication can be configured in PhpBrowser directly:
modules:
enabled:
- PhpBrowser
config:
PhpBrowser:
url: 'http://example.com/protected/'
auth: ['testuser', 'testpassword']