ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilAuthFrontendCredentialsSaml Class Reference

Class ilAuthFrontendCredentialsSaml. More...

+ 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

Constructor & Destructor Documentation

◆ __construct()

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

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

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

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

Member Function Documentation

◆ getAttributes()

ilAuthFrontendCredentialsSaml::getAttributes ( )

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

References $attributes.

49  : array
50  {
51  return $this->attributes;
52  }

◆ getReturnTo()

ilAuthFrontendCredentialsSaml::getReturnTo ( )

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

References $return_to.

54  : string
55  {
56  return $this->return_to;
57  }

◆ initFromRequest()

ilAuthFrontendCredentialsSaml::initFromRequest ( )

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

References setReturnTo().

39  : void
40  {
41  $this->setReturnTo((string) ($this->request->getQueryParams()['target'] ?? ''));
42  }
+ Here is the call graph for this function:

◆ setAttributes()

ilAuthFrontendCredentialsSaml::setAttributes ( array  $attributes)

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

References $attributes.

Referenced by __construct().

44  : void
45  {
46  $this->attributes = $attributes;
47  }
+ Here is the caller graph for this function:

◆ setReturnTo()

ilAuthFrontendCredentialsSaml::setReturnTo ( string  $return_to)

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

References $return_to.

Referenced by initFromRequest().

59  : void
60  {
61  $this->return_to = $return_to;
62  }
+ Here is the caller graph for this function:

Field Documentation

◆ $attributes

array ilAuthFrontendCredentialsSaml::$attributes = []
private

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

Referenced by getAttributes(), and setAttributes().

◆ $return_to

string ilAuthFrontendCredentialsSaml::$return_to = ''
private

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

Referenced by getReturnTo(), and setReturnTo().


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