|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
OAuth based lti authentication. More...
Inheritance diagram for ilAuthProviderLTI:
Collaboration diagram for ilAuthProviderLTI:Public Member Functions | |
| __construct (ilAuthCredentials $credentials) | |
| Constructor. More... | |
Public Member Functions inherited from ilAuthProvider | |
| __construct (ilAuthCredentials $credentials) | |
| Constructor. More... | |
| getLogger () | |
| Get logger. More... | |
| getCredentials () | |
Public Member Functions inherited from ilAuthProviderInterface | |
| doAuthentication (\ilAuthStatus $status) | |
| Do authentication. More... | |
Static Public Member Functions | |
| static | getAuthModeByKey (string $a_auth_key) |
| Get auth mode by key. More... | |
| static | getKeyByAuthMode (string $a_auth_mode) |
| Get auth id by auth mode. More... | |
| static | getActiveAuthModes () |
| get all active authmode server ids More... | |
| static | getAuthModes () |
| static | lookupConsumer (int $a_sid) |
| Lookup consumer title. More... | |
| static | getServerIdByAuthMode (string $a_auth_mode) |
| Get auth id by auth mode. More... | |
| static | isAuthModeLTI (string $a_auth_mode) |
| Check if user auth mode is LTI. More... | |
Data Fields | |
| const | AUTH_MODE_PREFIX = 'lti' |
Protected Member Functions | |
| findAuthKeyId (string $a_oauth_consumer_key) | |
| find consumer key id More... | |
| findAuthPrefix (int $a_lti_id) | |
| find lti id More... | |
| findGlobalRole (int $a_lti_id) | |
| find global role of consumer More... | |
| findUserId (string $a_oauth_user, string $a_oauth_id, string $a_user_prefix) | |
| Find user by auth mode and lti id. More... | |
| updateUser (int $a_local_user_id, ilLTIPlatform $consumer) | |
| update existing user protected More... | |
| createUser (ilLTIPlatform $consumer) | |
| create new user protected More... | |
| handleLocalRoleAssignments (int $user_id, ilLTIPlatform $consumer, int $target_ref_id, int $default_rol_id=null) | |
| mapLTIRoleToLocalRole (string $lti_role, ilLTIProviderObjectSetting $settings) | |
| Maps an LTI role (URI or simple name) to a local ILIAS role ID. More... | |
Protected Member Functions inherited from ilAuthProvider | |
| handleAuthenticationFail (ilAuthStatus $status, string $a_reason) | |
| Handle failed authentication. More... | |
Protected Attributes | |
| string | $launchReturnUrl = "" |
Private Attributes | |
| ilLTIDataConnector | $dataConnector = null |
| string | $lti_context_id = "" |
| int | $ref_id = 0 |
| ilLTITool | $provider = null |
| array | $messageParameters = null |
| ilLogger | $logger = null |
OAuth based lti authentication.
Definition at line 27 of file class.ilAuthProviderLTI.php.
| ilAuthProviderLTI::__construct | ( | ilAuthCredentials | $credentials | ) |
Constructor.
Definition at line 43 of file class.ilAuthProviderLTI.php.
References ILIAS\GlobalScreen\Provider\__construct(), ilLoggerFactory\getLogger(), and ILIAS\Repository\logger().
Here is the call graph for this function:
|
protected |
create new user protected
| ilLTIPlatform | $consumer |
| ilPasswordException | |
| ilUserException |
Definition at line 424 of file class.ilAuthProviderLTI.php.
References $DIC, $GLOBALS, ilAuthUtils\_generateLogin(), ilAuthProvider\getCredentials(), ilLTIPlatform\getExtConsumerId(), ilLTIPlatform\getLanguage(), ilAuthProvider\getLogger(), ilLTIPlatform\getPrefix(), ilLTIPlatform\getRole(), ilUtil\now(), and ilObjUser\PASSWD_CRYPTED.
Referenced by findGlobalRole().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
find consumer key id
| string | $a_oauth_consumer_key |
Definition at line 160 of file class.ilAuthProviderLTI.php.
References $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and ilAuthProvider\getLogger().
Here is the call graph for this function:
|
protected |
find lti id
| int | $a_lti_id |
Definition at line 186 of file class.ilAuthProviderLTI.php.
References $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and ilAuthProvider\getLogger().
Here is the call graph for this function:
|
protected |
find global role of consumer
| int | $a_lti_id |
Definition at line 208 of file class.ilAuthProviderLTI.php.
References $_COOKIE, $DIC, $ilDB, $launchReturnUrl, $post, $ref_id, $res, ilAuthProvider\$status, ilObject\_lookupType(), ilSession\clear(), createUser(), ilAuthProviderInterface\doAuthentication(), ilDBConstants\FETCHMODE_OBJECT, findUserId(), ilLTIPlatform\fromConsumerKey(), ilSession\get(), ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), handleLocalRoleAssignments(), ILIAS\Repository\int(), ILIAS\Repository\logger(), ilSession\set(), ilAuthStatus\setAuthenticatedUserId(), ilAuthStatus\setReason(), ilAuthStatus\setStatus(), ilAuthStatus\STATUS_AUTHENTICATED, ilAuthStatus\STATUS_AUTHENTICATION_FAILED, and updateUser().
Here is the call graph for this function:
|
protected |
Find user by auth mode and lti id.
| string | $a_oauth_user | |
| string | $a_oauth_id | |
| string | $a_user_prefix |
Definition at line 356 of file class.ilAuthProviderLTI.php.
References ilAuthProvider\$user_id, ilObjUser\_checkExternalAuthAccount(), ilObjUser\_lookupId(), and ilAuthProvider\getLogger().
Referenced by findGlobalRole().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
get all active authmode server ids
Definition at line 81 of file class.ilAuthProviderLTI.php.
References $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAuthUtils\_isExternalAccountEnabled().
Here is the caller graph for this function:
|
static |
Get auth mode by key.
| string | $a_auth_mode |
Definition at line 54 of file class.ilAuthProviderLTI.php.
Referenced by ilAuthUtils\_getAuthModeName().
Here is the caller graph for this function:
|
static |
Definition at line 99 of file class.ilAuthProviderLTI.php.
References $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAuthUtils\_getActiveAuthModes(), and ilAuthUtils\_getAllAuthModes().
Here is the caller graph for this function:
|
static |
Get auth id by auth mode.
| string | $a_auth_mode |
Definition at line 68 of file class.ilAuthProviderLTI.php.
References ilAuthUtils\AUTH_PROVIDER_LTI.
Referenced by ilAuthUtils\_getAuthMode().
Here is the caller graph for this function:
|
static |
Get auth id by auth mode.
| string | $a_auth_mode |
Definition at line 131 of file class.ilAuthProviderLTI.php.
Referenced by ilAuthUtils\getAuthModeTranslation().
Here is the caller graph for this function:
|
protected |
Definition at line 532 of file class.ilAuthProviderLTI.php.
References $DIC, ilAuthProvider\$user_id, ilLTIPlatform\getExtConsumerId(), ilAuthProvider\getLogger(), and mapLTIRoleToLocalRole().
Referenced by findGlobalRole().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if user auth mode is LTI.
| string | $a_auth_mode |
Definition at line 145 of file class.ilAuthProviderLTI.php.
References ilAuthUtils\AUTH_PROVIDER_LTI, and ilLoggerFactory\getLogger().
Here is the call graph for this function:
|
static |
Lookup consumer title.
| int | $a_sid |
Definition at line 119 of file class.ilAuthProviderLTI.php.
References ilLTIPlatform\fromRecordId().
Referenced by ilAuthUtils\getAuthModeTranslation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Maps an LTI role (URI or simple name) to a local ILIAS role ID.
| string | $lti_role | |
| ilLTIProviderObjectSetting | $settings |
Definition at line 585 of file class.ilAuthProviderLTI.php.
References ilLTIProviderObjectSetting\getAdminRole(), ilLTIProviderObjectSetting\getMemberRole(), and ilLTIProviderObjectSetting\getTutorRole().
Referenced by handleLocalRoleAssignments().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
update existing user protected
| int | $a_local_user_id | |
| ilLTIPlatform | $consumer |
Definition at line 377 of file class.ilAuthProviderLTI.php.
References $DIC, $GLOBALS, ilAuthProvider\getLogger(), and ilLTIPlatform\getRole().
Referenced by findGlobalRole().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 30 of file class.ilAuthProviderLTI.php.
|
protected |
Definition at line 36 of file class.ilAuthProviderLTI.php.
Referenced by findGlobalRole().
|
private |
Definition at line 38 of file class.ilAuthProviderLTI.php.
|
private |
Definition at line 31 of file class.ilAuthProviderLTI.php.
|
private |
Definition at line 34 of file class.ilAuthProviderLTI.php.
|
private |
Definition at line 33 of file class.ilAuthProviderLTI.php.
|
private |
Definition at line 32 of file class.ilAuthProviderLTI.php.
Referenced by findGlobalRole().
| const ilAuthProviderLTI::AUTH_MODE_PREFIX = 'lti' |
Definition at line 29 of file class.ilAuthProviderLTI.php.