ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAuthFrontendCredentialsOpenIdConnect Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilAuthFrontendCredentialsOpenIdConnect:
+ Collaboration diagram for ilAuthFrontendCredentialsOpenIdConnect:

Public Member Functions

 __construct ()
 
 getRedirectionTarget ()
 
 initFromRequest ()
 
- Public Member Functions inherited from ilAuthFrontendCredentials
 __construct ()
 
 setUsername (string $a_name)
 Set username. More...
 
 getUsername ()
 Get username. More...
 
 setPassword (string $a_password)
 Set password. More...
 
 getPassword ()
 Get password. More...
 
 setAuthMode (string $a_auth_mode)
 Set auth mode. More...
 
 getAuthMode ()
 Get auth mode. More...
 

Protected Member Functions

 getSettings ()
 
 parseRedirectionTarget ()
 

Private Attributes

const SESSION_TARGET = 'oidc_target'
 
const QUERY_PARAM_TARGET = 'target'
 
ilOpenIdConnectSettings $settings
 
string $target = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

Definition at line 24 of file class.ilAuthFrontendCredentialsOpenIdConnect.php.

Constructor & Destructor Documentation

◆ __construct()

ilAuthFrontendCredentialsOpenIdConnect::__construct ( )

Definition at line 32 of file class.ilAuthFrontendCredentialsOpenIdConnect.php.

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilOpenIdConnectSettings\getInstance(), and ILIAS\Repository\settings().

33  {
34  global $DIC;
35 
38  $httpquery = $DIC->http()->wrapper()->query();
39  if ($httpquery->has(self::QUERY_PARAM_TARGET)) {
40  $this->target = $httpquery->retrieve(self::QUERY_PARAM_TARGET, $DIC->refinery()->to()->string());
41  }
42  }
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getRedirectionTarget()

ilAuthFrontendCredentialsOpenIdConnect::getRedirectionTarget ( )

Definition at line 49 of file class.ilAuthFrontendCredentialsOpenIdConnect.php.

References $target.

◆ getSettings()

ilAuthFrontendCredentialsOpenIdConnect::getSettings ( )
protected

◆ initFromRequest()

ilAuthFrontendCredentialsOpenIdConnect::initFromRequest ( )

Definition at line 54 of file class.ilAuthFrontendCredentialsOpenIdConnect.php.

References parseRedirectionTarget(), ilAuthFrontendCredentials\setPassword(), and ilAuthFrontendCredentials\setUsername().

54  : void
55  {
56  $this->setUsername('');
57  $this->setPassword('');
58 
59  $this->parseRedirectionTarget();
60  }
setPassword(string $a_password)
Set password.
setUsername(string $a_name)
Set username.
+ Here is the call graph for this function:

◆ parseRedirectionTarget()

ilAuthFrontendCredentialsOpenIdConnect::parseRedirectionTarget ( )
protected

Definition at line 62 of file class.ilAuthFrontendCredentialsOpenIdConnect.php.

References ilSession\get(), and ilSession\set().

Referenced by initFromRequest().

62  : void
63  {
64  if ($this->target) {
65  ilSession::set(self::SESSION_TARGET, $this->target);
66  } elseif (ilSession::get(self::SESSION_TARGET)) {
67  $this->target = ilSession::get(self::SESSION_TARGET);
68  }
69  }
static get(string $a_var)
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $settings

ilOpenIdConnectSettings ilAuthFrontendCredentialsOpenIdConnect::$settings
private

Definition at line 29 of file class.ilAuthFrontendCredentialsOpenIdConnect.php.

Referenced by getSettings().

◆ $target

string ilAuthFrontendCredentialsOpenIdConnect::$target = null
private

◆ QUERY_PARAM_TARGET

const ilAuthFrontendCredentialsOpenIdConnect::QUERY_PARAM_TARGET = 'target'
private

◆ SESSION_TARGET

const ilAuthFrontendCredentialsOpenIdConnect::SESSION_TARGET = 'oidc_target'
private

The documentation for this class was generated from the following file: