ixis / codeception-module-http-auth
A Codeception module for passing HTTP authentication.
Installs: 186
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 1
Open Issues: 0
pkg:composer/ixis/codeception-module-http-auth
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2020-08-21 20:00:35 UTC
README
A Codeception module for passing HTTP authentication
This simple Codeception module allows PhpBrowser to automatically pass HTTP authentication based on configuration.
Install with Composer and Packagist
{
"require": {
"codeception/codeception": "1.8.*",
"ixis/codeception-module-http-auth": "dev-master"
}
}
Example suite configuration
modules:
enabled:
- PhpBrowser
- HttpAuth
config:
PhpBrowser:
url: 'http://example.com/protected/'
HttpAuth:
username: user
password: password
Codeception 2
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']