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

Class ilAuthFrontendCredentialsSaml. More...

+ Inheritance diagram for ilAuthFrontendCredentialsSaml:
+ Collaboration diagram for ilAuthFrontendCredentialsSaml:

Public Member Functions

 __construct (ilSamlAuth $auth, 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

ilSamlAuth $auth
 
ServerRequestInterface $request
 
string $return_to = ''
 
array $attributes = []
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

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

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

35  {
37 
38  $this->auth = $auth;
39  $this->request = $request;
40 
41  $this->setAttributes($this->auth->getAttributes());
42  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getAttributes()

ilAuthFrontendCredentialsSaml::getAttributes ( )

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

References $attributes.

54  : array
55  {
56  return $this->attributes;
57  }

◆ getReturnTo()

ilAuthFrontendCredentialsSaml::getReturnTo ( )

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

References $return_to.

59  : string
60  {
61  return $this->return_to;
62  }

◆ initFromRequest()

ilAuthFrontendCredentialsSaml::initFromRequest ( )

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

References setReturnTo().

44  : void
45  {
46  $this->setReturnTo((string) ($this->request->getQueryParams()['target'] ?? ''));
47  }
+ Here is the call graph for this function:

◆ setAttributes()

ilAuthFrontendCredentialsSaml::setAttributes ( array  $attributes)

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

References $attributes.

Referenced by __construct().

49  : void
50  {
51  $this->attributes = $attributes;
52  }
+ Here is the caller graph for this function:

◆ setReturnTo()

ilAuthFrontendCredentialsSaml::setReturnTo ( string  $return_to)

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

References $return_to.

Referenced by initFromRequest().

64  : void
65  {
66  $this->return_to = $return_to;
67  }
+ Here is the caller graph for this function:

Field Documentation

◆ $attributes

array ilAuthFrontendCredentialsSaml::$attributes = []
private

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

Referenced by getAttributes(), and setAttributes().

◆ $auth

ilSamlAuth ilAuthFrontendCredentialsSaml::$auth
private

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

Referenced by __construct().

◆ $request

ServerRequestInterface ilAuthFrontendCredentialsSaml::$request
private

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

Referenced by __construct().

◆ $return_to

string ilAuthFrontendCredentialsSaml::$return_to = ''
private

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

Referenced by getReturnTo(), and setReturnTo().


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