ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
OAuth based lti authentication. More...
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 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
protected
Definition at line 222 of file class.ilAuthProviderLTI.php.
References $_POST, $GLOBALS, $ilSetting, ilAuthUtils\_generateLogin(), ilAuthProvider\getCredentials(), ilLTIToolConsumer\getExtConsumerId(), ilAuthProvider\getLogger(), ilLTIToolConsumer\getPrefix(), ilLTIToolConsumer\getRole(), IL_PASSWD_CRYPTED, and time.
|
protected |
find consumer key id 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().
|
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().
|
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().
|
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().
|
static |
get all active authmode server ids
Definition at line 393 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAuthUtils\_isExternalAccountEnabled().
|
static |
Get auth mode by key.
string | $a_auth_mode |
Definition at line 366 of file class.ilAuthProviderLTI.php.
References array.
Referenced by ilAuthUtils\_getAuthModeName().
|
static |
Definition at line 408 of file class.ilAuthProviderLTI.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAuthUtils\_getActiveAuthModes(), and ilAuthUtils\_getAllAuthModes().
|
static |
Get auth id by auth mode.
string | $a_auth_mode |
Definition at line 380 of file class.ilAuthProviderLTI.php.
References array, and AUTH_PROVIDER_LTI.
Referenced by ilAuthUtils\_getAuthMode().
|
static |
Get auth id by auth mode.
type | $a_auth_mode |
Definition at line 442 of file class.ilAuthProviderLTI.php.
Referenced by ilAuthUtils\getAuthModeTranslation().
|
protected |
Definition at line 305 of file class.ilAuthProviderLTI.php.
References $_POST, $_SESSION, $GLOBALS, ilAuthProvider\$user_id, ilLTIToolConsumer\getExtConsumerId(), and ilAuthProvider\getLogger().
|
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().
|
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().
|
protected |
update existing user
protected
Definition at line 279 of file class.ilAuthProviderLTI.php.
References $_POST, $GLOBALS, $ilLog, ilAuthProvider\getLogger(), ilLTIToolConsumer\getRole(), and time.
|
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.