◆ authenticateUser()
authenticateUser |
( |
|
$username, |
|
|
|
$password |
|
) |
| |
Authenticate this user and handle auto enrollment. If the URL parameter "sem_id" is set, the user is automatically redircted to the enrollment action for this course.
- Parameters
-
string | $username | the username to check |
string | $password | the password (ignored) |
- Returns
- mixed if authentication succeeds: the Stud.IP user, else false
- Exceptions
-
OAuthException2 | if the signature verification failed |
◆ getUser()
Return the current username of the pending authentication request.
◆ getUserData()
◆ getUserDomains()
Get the user domains to assign to the current user (if any).
- Returns
- array array of user domain names
◆ isAuthenticated()
isAuthenticated |
( |
|
$username, |
|
|
|
$password |
|
) |
| |
Check whether this user can be authenticated. Since we trust the user information sent by the LTI consumer, only the OAuth signature is checked.
- Parameters
-
string | $username | account name |
string | $password | (ignored) |
- Returns
- bool true if authentication succeeds
- Exceptions
-
OAuthException2 | if the signature verification failed |
◆ verifyUsername()
verifyUsername |
( |
|
$username | ) |
|
Validate the username passed to the auth plugin. Note: This implementation ignores the username parameter and always uses the data passed via the LTI parameters "lis_person_sourcedid" or "user_id".
- Parameters
-
- Returns
- string username derived from LTI parameters
- Exceptions
-
InvalidArgumentException | if no username can be determined |
◆ $consumer_keys
◆ $domain
◆ $username
The documentation for this class was generated from the following file: