|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| SimpleAuthenticator () | |
| restartSession () | |
| addRealm ($url, $type, $realm) | |
| setIdentityForRealm ($host, $realm, $username, $password) | |
| _findRealmFromUrl ($url) | |
| addHeaders (&$request, $url) | |
Static Public Member Functions | |
| addBasicHeaders (&$request, $username, $password) | |
Data Fields | |
| $_realms | |
Definition at line 131 of file authentication.php.
| _findRealmFromUrl | ( | $ | url | ) |
Finds the name of the realm by comparing URLs.
| SimpleUrl | $url | URL to test. |
Definition at line 191 of file authentication.php.

| addBasicHeaders | ( | &$ | request, |
| $ | username, | ||
| $ | password | ||
| ) | [static] |
Presents the appropriate headers for this location for basic authentication.
| SimpleHttpRequest | $request | Request to modify. |
| string | $username | Username for realm. |
| string | $password | Password for realm. public |
Definition at line 231 of file authentication.php.

| addHeaders | ( | &$ | request, |
| $ | url | ||
| ) |
Presents the appropriate headers for this location.
| SimpleHttpRequest | $request | Request to modify. |
| SimpleUrl | $url | Base of realm. public |
Definition at line 209 of file authentication.php.

| addRealm | ( | $ | url, |
| $ | type, | ||
| $ | realm | ||
| ) |
Adds a new realm centered the current URL. Browsers vary wildly on their behaviour in this regard. Mozilla ignores the realm and presents only when challenged, wasting bandwidth. IE just carries on presenting until a new challenge occours. SimpleTest tries to follow the spirit of the original standards committee and treats the base URL as the root of a file tree shaped realm.
| SimpleUrl | $url | Base of realm. |
| string | $type | Authentication type for this realm. Only Basic authentication is currently supported. |
| string | $realm | Name of realm. public |
Definition at line 166 of file authentication.php.
| restartSession | ( | ) |
Starts with no realms set up. public
Definition at line 146 of file authentication.php.

| setIdentityForRealm | ( | $ | host, |
| $ | realm, | ||
| $ | username, | ||
| $ | password | ||
| ) |
Sets the current identity to be presented against that realm.
| string | $host | Server hosting realm. |
| string | $realm | Name of realm. |
| string | $username | Username for realm. |
| string | $password | Password for realm. public |
Definition at line 179 of file authentication.php.
Clears the realms. public
Definition at line 138 of file authentication.php.

| $_realms |
Definition at line 132 of file authentication.php.