ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAuthFrontendCredentialsOpenIdConnect Class Reference
+ 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'
 
readonly ilOpenIdConnectSettings $settings
 
string $target = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilAuthFrontendCredentialsOpenIdConnect::__construct ( )

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

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

30  {
31  global $DIC;
32 
34 
36  $httpquery = $DIC->http()->wrapper()->query();
37  if ($httpquery->has(self::QUERY_PARAM_TARGET)) {
38  $this->target = $httpquery->retrieve(self::QUERY_PARAM_TARGET, $DIC->refinery()->to()->string());
39  }
40  }
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getRedirectionTarget()

ilAuthFrontendCredentialsOpenIdConnect::getRedirectionTarget ( )

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

References $target.

◆ getSettings()

ilAuthFrontendCredentialsOpenIdConnect::getSettings ( )
protected

◆ initFromRequest()

ilAuthFrontendCredentialsOpenIdConnect::initFromRequest ( )

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

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

52  : void
53  {
54  $this->setUsername('');
55  $this->setPassword('');
56 
57  $this->parseRedirectionTarget();
58  }
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 60 of file class.ilAuthFrontendCredentialsOpenIdConnect.php.

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

Referenced by initFromRequest().

60  : void
61  {
62  if ($this->target) {
63  ilSession::set(self::SESSION_TARGET, $this->target);
64  } elseif (ilSession::get(self::SESSION_TARGET)) {
65  $this->target = ilSession::get(self::SESSION_TARGET);
66  }
67  }
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

readonly ilOpenIdConnectSettings ilAuthFrontendCredentialsOpenIdConnect::$settings
private

Definition at line 26 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: