ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAuthFrontendCredentialsOpenIdConnect.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
12 {
13  const SESSION_TARGET = 'oidc_target';
14 
18  private $settings = null;
19 
23  private $target = null;
24 
25 
29  public function __construct()
30  {
31  parent::__construct();
32 
34  }
35 
36 
40  protected function getSettings()
41  {
42  return $this->settings;
43  }
44 
48  public function getRedirectionTarget()
49  {
50  return $this->target;
51  }
52 
56  public function initFromRequest()
57  {
58  $this->setUsername('');
59  $this->setPassword('');
60 
61  $this->parseRedirectionTarget();
62  }
63 
67  protected function parseRedirectionTarget()
68  {
69  global $DIC;
70 
71  $logger = $DIC->logger()->auth();
72  if (!empty($_GET['target'])) {
73  $this->target = $_GET['target'];
74  \ilSession::set(self::SESSION_TARGET, $this->target);
75  } elseif (ilSession::get(self::SESSION_TARGET)) {
76  $this->target = \ilSession::get(self::SESSION_TARGET);
77  }
78  }
79 }
settings()
Definition: settings.php:2
Interface of auth credentials.
global $DIC
Definition: saml.php:7
$_GET["client_id"]
static get($a_var)
Get a value.
static set($a_var, $a_val)
Set a value.
static getInstance()
Get singleton instance.
setPassword($a_password)
Set password.