ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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 LTI. More... | |
Data Fields | |
const | AUTH_MODE_PREFIX = 'lti' |
![]() | |
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) | |
![]() | |
handleAuthenticationFail (ilAuthStatus $status, $a_reason) | |
Handle failed authentication. More... | |
Private Attributes | |
$dataConnector = null | |
$lti_context_id = "" | |
Additional Inherited Members | |
![]() | |
__construct (ilAuthCredentials $credentials) | |
Constructor. More... | |
getLogger () | |
Get logger. More... | |
getCredentials () | |
![]() | |
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 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.
|
protected |
find consumer key id 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().
|
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().
|
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().
|
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().
|
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().
|
static |
Get auth mode by key.
string | $a_auth_mode |
Definition at line 363 of file class.ilAuthProviderLTI.php.
Referenced by ilAuthUtils\_getAuthModeName().
|
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().
|
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().
|
static |
Get auth id by auth mode.
type | $a_auth_mode |
Definition at line 439 of file class.ilAuthProviderLTI.php.
Referenced by ilAuthUtils\getAuthModeTranslation().
|
protected |
Definition at line 301 of file class.ilAuthProviderLTI.php.
References $_POST, $GLOBALS, ilAuthProvider\$user_id, ilLTIToolConsumer\getExtConsumerId(), and ilAuthProvider\getLogger().
|
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().
|
static |
Lookup consumer title.
type | $a_sid |
Definition at line 425 of file class.ilAuthProviderLTI.php.
References ilLTIToolConsumer\fromRecordId().
Referenced by ilAuthUtils\getAuthModeTranslation().
|
protected |
update existing user
protected
Definition at line 275 of file class.ilAuthProviderLTI.php.
References $_POST, $GLOBALS, $ilLog, ilAuthProvider\getLogger(), and ilLTIToolConsumer\getRole().
|
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.