|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 LDAP. 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 | |
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 222 of file class.ilAuthProviderLTI.php.
References $_POST, $consumer, $GLOBALS, $ilSetting, ilAuthUtils\_generateLogin(), ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), 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 140 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $res, $row, 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 162 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and ilAuthProvider\getLogger().
Here is the call graph for this function:
|
protected |
find global role of consumer
Definition at line 182 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $res, $row, 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 203 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 393 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $res, $row, 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 366 of file class.ilAuthProviderLTI.php.
Referenced by ilAuthUtils\_getAuthModeName().
Here is the caller graph for this function:
|
static |
Definition at line 408 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $res, $row, 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 380 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 442 of file class.ilAuthProviderLTI.php.
Referenced by ilAuthUtils\getAuthModeTranslation().
Here is the caller graph for this function:
|
protected |
Definition at line 305 of file class.ilAuthProviderLTI.php.
References $_POST, $_SESSION, $consumer, $GLOBALS, ilAuthProvider\$user_id, and ilAuthProvider\getLogger().
Here is the call graph for this function:
|
static |
Check if user auth mode is LDAP.
| type | $a_auth_mode |
Definition at line 455 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 428 of file class.ilAuthProviderLTI.php.
References $consumer, and 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 279 of file class.ilAuthProviderLTI.php.
References $_POST, $consumer, $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.
| const ilAuthProviderLTI::AUTH_MODE_PREFIX = 'lti' |
Definition at line 21 of file class.ilAuthProviderLTI.php.