You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
To include a Custom Authentication Process in your answerspace you first need to create two mADL interactions.
Interaction Name | Type | Description |
---|
loginstatus | mADL | Used to return True or False if user is logged in using$t->getSessionValue() Function |
loginprompt | mADL | Used to display a custom login screen |
// TODO: instead of pulling from $t->getSessionValue(), contact (web) service
// always return false if the user is not logged in
$account = $t->getSessionValue('account');
if (empty($account) || !is_array($account)) {
return false;
} else {
return $account;
}
/* example successful return
return array(
'username' => 'user01',
'name' => 'Bob', // [optional]
'groups' => array() // Interaction Group IDs
);
*/