|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
OAuth based lti authentication. More...
Inheritance diagram for ilAuthProviderLTI:
Collaboration diagram for ilAuthProviderLTI:Static Public Member Functions | |
| static | getAuthModeByKey ($a_auth_key) |
| Get auth mode by key. More... | |
| static | getKeyByAuthMode ($a_auth_mode) |
| Get auth id by auth mode. More... | |
| static | getActiveAuthModes () |
| get all active authmode server ids More... | |
| static | getAuthModes () |
| static | lookupConsumer ($a_sid) |
| Lookup consumer title. More... | |
| static | getServerIdByAuthMode ($a_auth_mode) |
| Get auth id by auth mode. More... | |
| static | isAuthModeLTI ($a_auth_mode) |
| Check if user auth mode is LTI. More... | |
Data Fields | |
| const | AUTH_MODE_PREFIX = 'lti' |
Data Fields inherited from ilAuthProvider | |
| const | STATUS_UNDEFINED = 0 |
| const | STATUS_AUTHENTICATION_SUCCESS = 1 |
| const | STATUS_AUTHENTICATION_FAILED = 2 |
| const | STATUS_MIGRATION = 3 |
Protected Member Functions | |
| findAuthKeyId ($a_oauth_consumer_key) | |
| find consumer key id @global type $ilDB More... | |
| findAuthPrefix ($a_lti_id) | |
| find lti id More... | |
| findGlobalRole ($a_lti_id) | |
| find global role of consumer More... | |
| findUserId ($a_oauth_user, $a_oauth_id, $a_user_prefix) | |
| Find user by auth mode and lti id. More... | |
| createUser (ilLTIToolConsumer $consumer) | |
| create new user More... | |
| updateUser ($a_local_user_id, ilLTIToolConsumer $consumer) | |
| update existing user More... | |
| handleLocalRoleAssignments ($user_id, ilLTIToolConsumer $consumer) | |
Protected Member Functions inherited from ilAuthProvider | |
| handleAuthenticationFail (ilAuthStatus $status, $a_reason) | |
| Handle failed authentication. More... | |
Private Attributes | |
| $dataConnector = null | |
| $lti_context_id = "" | |
Additional Inherited Members | |
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... | |
OAuth based lti authentication.
Definition at line 19 of file class.ilAuthProviderLTI.php.
|
protected |
create new user
@access protected
Definition at line 218 of file class.ilAuthProviderLTI.php.
References $_POST, $GLOBALS, $ilSetting, ilAuthUtils\_generateLogin(), ilAuthProvider\getCredentials(), ilLTIToolConsumer\getExtConsumerId(), ilLTIToolConsumer\getLanguage(), ilAuthProvider\getLogger(), ilLTIToolConsumer\getPrefix(), ilLTIToolConsumer\getRole(), and IL_PASSWD_CRYPTED.
Here is the call graph for this function:
|
protected |
find consumer key id @global type $ilDB
| type | $a_oauth_consumer_key |
Definition at line 136 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ilAuthProvider\getLogger().
Here is the call graph for this function:
|
protected |
find lti id
| type | $a_lti_id |
Definition at line 158 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ilAuthProvider\getLogger().
Here is the call graph for this function:
|
protected |
find global role of consumer
Definition at line 178 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ilAuthProvider\getLogger().
Here is the call graph for this function:
|
protected |
Find user by auth mode and lti id.
| type | $a_oauth_user | |
| type | $a_oauth_id |
Definition at line 199 of file class.ilAuthProviderLTI.php.
References ilAuthProvider\$user_id, ilObjUser\_checkExternalAuthAccount(), ilObjUser\_lookupId(), and ilAuthProvider\getLogger().
Here is the call graph for this function:
|
static |
get all active authmode server ids
Definition at line 390 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $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 363 of file class.ilAuthProviderLTI.php.
Referenced by ilAuthUtils\_getAuthModeName().
Here is the caller graph for this function:
|
static |
Definition at line 405 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $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 377 of file class.ilAuthProviderLTI.php.
References AUTH_PROVIDER_LTI.
Referenced by ilAuthUtils\_getAuthMode().
Here is the caller graph for this function:
|
static |
Get auth id by auth mode.
| type | $a_auth_mode |
Definition at line 439 of file class.ilAuthProviderLTI.php.
Referenced by ilAuthUtils\getAuthModeTranslation().
Here is the caller graph for this function:
|
protected |
Definition at line 301 of file class.ilAuthProviderLTI.php.
References $_POST, $GLOBALS, ilAuthProvider\$user_id, ilLTIToolConsumer\getExtConsumerId(), and ilAuthProvider\getLogger().
Here is the call graph for this function:
|
static |
Check if user auth mode is LTI.
| type | $a_auth_mode |
Definition at line 452 of file class.ilAuthProviderLTI.php.
References AUTH_PROVIDER_LTI, and ilLoggerFactory\getLogger().
Here is the call graph for this function:
|
static |
Lookup consumer title.
| type | $a_sid |
Definition at line 425 of file class.ilAuthProviderLTI.php.
References ilLTIToolConsumer\fromRecordId().
Referenced by ilAuthUtils\getAuthModeTranslation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
update existing user
@access protected
Definition at line 275 of file class.ilAuthProviderLTI.php.
References $_POST, $GLOBALS, $ilLog, ilAuthProvider\getLogger(), and ilLTIToolConsumer\getRole().
Here is the call graph for this function:
|
private |
Definition at line 22 of file class.ilAuthProviderLTI.php.
|
private |
Definition at line 23 of file class.ilAuthProviderLTI.php.
| const ilAuthProviderLTI::AUTH_MODE_PREFIX = 'lti' |
Definition at line 21 of file class.ilAuthProviderLTI.php.