ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAuthFrontendCredentialsSaml Class Reference
+ Inheritance diagram for ilAuthFrontendCredentialsSaml:
+ Collaboration diagram for ilAuthFrontendCredentialsSaml:

Public Member Functions

 __construct (private readonly ilSamlAuth $auth, private readonly ServerRequestInterface $request)
 
 initFromRequest ()
 
 setAttributes (array $attributes)
 
 getAttributes ()
 
 getReturnTo ()
 
 setReturnTo (string $return_to)
 
- 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...
 

Private Attributes

string $return_to = ''
 
array $attributes = []
 

Detailed Description

Definition at line 23 of file class.ilAuthFrontendCredentialsSaml.php.

Constructor & Destructor Documentation

◆ __construct()

ilAuthFrontendCredentialsSaml::__construct ( private readonly ilSamlAuth  $auth,
private readonly ServerRequestInterface  $request 
)

Definition at line 28 of file class.ilAuthFrontendCredentialsSaml.php.

References ILIAS\GlobalScreen\Provider\__construct(), and setAttributes().

29  {
31 
32  $this->setAttributes($this->auth->getAttributes());
33  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getAttributes()

ilAuthFrontendCredentialsSaml::getAttributes ( )

Definition at line 45 of file class.ilAuthFrontendCredentialsSaml.php.

References $attributes.

45  : array
46  {
47  return $this->attributes;
48  }

◆ getReturnTo()

ilAuthFrontendCredentialsSaml::getReturnTo ( )

Definition at line 50 of file class.ilAuthFrontendCredentialsSaml.php.

References $return_to.

50  : string
51  {
52  return $this->return_to;
53  }

◆ initFromRequest()

ilAuthFrontendCredentialsSaml::initFromRequest ( )

Definition at line 35 of file class.ilAuthFrontendCredentialsSaml.php.

References setReturnTo().

35  : void
36  {
37  $this->setReturnTo((string) ($this->request->getQueryParams()['target'] ?? ''));
38  }
+ Here is the call graph for this function:

◆ setAttributes()

ilAuthFrontendCredentialsSaml::setAttributes ( array  $attributes)

Definition at line 40 of file class.ilAuthFrontendCredentialsSaml.php.

References $attributes.

Referenced by __construct().

40  : void
41  {
42  $this->attributes = $attributes;
43  }
+ Here is the caller graph for this function:

◆ setReturnTo()

ilAuthFrontendCredentialsSaml::setReturnTo ( string  $return_to)

Definition at line 55 of file class.ilAuthFrontendCredentialsSaml.php.

References $return_to.

Referenced by initFromRequest().

55  : void
56  {
57  $this->return_to = $return_to;
58  }
+ Here is the caller graph for this function:

Field Documentation

◆ $attributes

array ilAuthFrontendCredentialsSaml::$attributes = []
private

Definition at line 26 of file class.ilAuthFrontendCredentialsSaml.php.

Referenced by getAttributes(), and setAttributes().

◆ $return_to

string ilAuthFrontendCredentialsSaml::$return_to = ''
private

Definition at line 25 of file class.ilAuthFrontendCredentialsSaml.php.

Referenced by getReturnTo(), and setReturnTo().


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