ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilAuthFrontendCredentialsLTI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
6include_once './Services/Authentication/classes/Frontend/class.ilAuthFrontendCredentials.php';
7include_once './Services/Authentication/interfaces/interface.ilAuthCredentials.php';
8
16{
17 public function __construct()
18 {
20 // overwrite default lti logger
21 $this->setLogger($GLOBALS['DIC']->logger()->lti());
22 }
23
24
25
29 public function initFromRequest()
30 {
31 $this->getLogger()->debug('New lti authentication request...');
32 $this->getLogger()->dump($_REQUEST, ilLogLevel::DEBUG);
33
34 $this->setUsername($_POST['user_id']);
35 }
36}
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
$_POST["username"]
An exception for terminatinating execution or to throw for unit testing.
Auth credentials for lti oauth based authentication.
initFromRequest()
Init credentials from request.
setLogger(ilLogger $logger)
Set Logger.
Interface of auth credentials.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc