|
MediaWiki master
|
Provides authentication to swift file backend. More...
Public Member Functions | |
| __construct (array $config, MultiHttpClient $http, LoggerInterface $logger) | |
| authTokenHeaders (array $creds) | |
| getAuthentication () | |
| Get the cached auth token. | |
| getAuthFailureResponse () | |
| Get a synthetic response to return from requestWithAuth() or requestMultiWithAuth() if the request could not be issued due to failure of a prior authentication request. | |
| refreshAuthentication () | |
| Fetch the auth token from the server, without caching. | |
| setLogger (LoggerInterface $logger) | |
Public Attributes | |
| const | AUTH_FAILURE_ERROR = 'Could not connect due to prior authentication failure' |
Provides authentication to swift file backend.
Definition at line 16 of file SwiftAuthProvider.php.
| Wikimedia\FileBackend\SwiftAuthProvider::__construct | ( | array | $config, |
| MultiHttpClient | $http, | ||
| LoggerInterface | $logger ) |
Definition at line 40 of file SwiftAuthProvider.php.
References Wikimedia\FileBackend\SwiftAuthProvider\setLogger().
| Wikimedia\FileBackend\SwiftAuthProvider::authTokenHeaders | ( | array | $creds | ) |
Definition at line 180 of file SwiftAuthProvider.php.
| Wikimedia\FileBackend\SwiftAuthProvider::getAuthentication | ( | ) |
Get the cached auth token.
Definition at line 71 of file SwiftAuthProvider.php.
| Wikimedia\FileBackend\SwiftAuthProvider::getAuthFailureResponse | ( | ) |
Get a synthetic response to return from requestWithAuth() or requestMultiWithAuth() if the request could not be issued due to failure of a prior authentication request.
This failure should not be logged as an HTTP error since the original failure would have been logged.
Definition at line 202 of file SwiftAuthProvider.php.
| Wikimedia\FileBackend\SwiftAuthProvider::refreshAuthentication | ( | ) |
Fetch the auth token from the server, without caching.
Definition at line 125 of file SwiftAuthProvider.php.
| Wikimedia\FileBackend\SwiftAuthProvider::setLogger | ( | LoggerInterface | $logger | ) |
Definition at line 61 of file SwiftAuthProvider.php.
Referenced by Wikimedia\FileBackend\SwiftAuthProvider\__construct().
| const Wikimedia\FileBackend\SwiftAuthProvider::AUTH_FAILURE_ERROR = 'Could not connect due to prior authentication failure' |
Definition at line 18 of file SwiftAuthProvider.php.
Referenced by Wikimedia\FileBackend\SwiftFileBackend\onError().