|
| Auth_Container_SOAP ($options) |
| Constructor of the container class. More...
|
|
| fetchData ($username, $password) |
| Fetch data from SOAP service. More...
|
|
| Auth_Container () |
| Constructor. More...
|
|
| fetchData ($username, $password, $isChallengeResponse=false) |
| Fetch data from storage container. More...
|
|
| verifyPassword ($password1, $password2, $cryptType="md5") |
| Crypt and verfiy the entered password. More...
|
|
| supportsChallengeResponse () |
| Returns true if the container supports Challenge Response password authentication. More...
|
|
| getCryptType () |
| Returns the crypt current crypt type of the container. More...
|
|
| listUsers () |
| List all users that are available from the storage container. More...
|
|
| getUser ($username) |
| Returns a user assoc array. More...
|
|
| addUser ($username, $password, $additional=null) |
| Add a new user to the storage container. More...
|
|
| removeUser ($username) |
| Remove user from the storage container. More...
|
|
| changePassword ($username, $password) |
| Change password for user in the storage container. More...
|
|
| log ($message, $level=AUTH_LOG_DEBUG) |
| Log a message to the Auth log. More...
|
|
| loginObserver ($a_username, $a_auth) |
| Called after successful login. More...
|
|
| failedLoginObserver ($a_username, $a_auth) |
| Called after failed login. More...
|
|
| checkAuthObserver ($a_username, $a_auth) |
| Called after check auth requests. More...
|
|
| logoutObserver ($a_username, $a_auth) |
| Called after logout. More...
|
|
| supportsCaptchaVerification () |
| Returns whether or not the auth container supports the verification of captchas This should be true for those auth methods, which are available in the default login form. More...
|
|
Definition at line 90 of file SOAP.php.
Auth_Container_SOAP::fetchData |
( |
|
$username, |
|
|
|
$password |
|
) |
| |
Fetch data from SOAP service.
Requests the SOAP service for the given username/password combination.
- Parameters
-
string | Username |
string | Password |
- Returns
- mixed Returns the SOAP response or false if something went wrong
Definition at line 171 of file SOAP.php.
References AUTH_LOG_DEBUG, PEAR\isError(), and Auth_Container\log().
175 if (array_intersect($this->_requiredOptions, array_keys($this->_options)) != $this->_requiredOptions) {
179 $this->soapClient =
new SOAP_Client($this->_options[
'endpoint']);
180 $this->soapClient->setEncoding($this->_options[
'encoding']);
184 if (isset($this->_options[
'trace'])) {
185 $this->soapClient->__options[
'trace'] =
true;
189 if (isset($this->_options[
'timeout'])) {
190 $this->soapClient->__options[
'timeout'] = $this->_options[
'timeout'];
194 $usernameField =
new SOAP_Value($this->_options[
'usernamefield'],
'string', $username);
195 $passwordField =
new SOAP_Value($this->_options[
'passwordfield'],
'string', $password);
196 $SOAPParams = array($usernameField, $passwordField);
199 foreach ($this->_features as $fieldName => $fieldValue) {
200 $SOAPParams[] =
new SOAP_Value($fieldName,
'string', $fieldValue);
204 $this->soapResponse = $this->soapClient->call(
205 $this->_options[
'method'],
207 array(
'namespace' => $this->_options[
'namespace'])
211 if ($this->_options[
'matchpasswords']) {
213 if ($password == $this->soapResponse->{$this->_options[
'passwordfield']}) {
const AUTH_LOG_DEBUG
Auth Log level - DEBUG.
log($message, $level=AUTH_LOG_DEBUG)
Log a message to the Auth log.
isError($data, $code=null)
Tell whether a value is a PEAR error.