ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
sspmod_exampleauth_Auth_Source_Static Class Reference
+ Inheritance diagram for sspmod_exampleauth_Auth_Source_Static:
+ Collaboration diagram for sspmod_exampleauth_Auth_Source_Static:

Public Member Functions

 __construct ($info, $config)
 Constructor for this authentication source. More...
 
 authenticate (&$state)
 Log in using static attributes. More...
 
- Public Member Functions inherited from SimpleSAML_Auth_Source
 __construct ($info, &$config)
 Constructor for an authentication source. More...
 
 getAuthId ()
 Retrieve the ID of this authentication source. More...
 
 authenticate (&$state)
 Process a request. More...
 
 reauthenticate (array &$state)
 Reauthenticate an user. More...
 
 initLogin ($return, $errorURL=null, array $params=array())
 Start authentication. More...
 
 logout (&$state)
 Log out from this authentication source. More...
 

Private Attributes

 $attributes
 The attributes we return. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from SimpleSAML_Auth_Source
static getSourcesOfType ($type)
 Get sources of a specific type. More...
 
static completeAuth (&$state)
 Complete authentication. More...
 
static loginCompleted ($state)
 Called when a login operation has finished. More...
 
static completeLogout (&$state)
 Complete logout. More...
 
static getById ($authId, $type=null)
 Retrieve authentication source. More...
 
static logoutCallback ($state)
 Called when the authentication source receives an external logout request. More...
 
static getSources ()
 Retrieve list of authentication sources. More...
 
- Protected Member Functions inherited from SimpleSAML_Auth_Source
 addLogoutCallback ($assoc, $state)
 Add a logout callback association. More...
 
 callLogoutCallback ($assoc)
 Call a logout callback based on association. More...
 
- Static Protected Member Functions inherited from SimpleSAML_Auth_Source
static validateSource ($source, $id)
 Make sure that the first element of an auth source is its identifier. More...
 
- Protected Attributes inherited from SimpleSAML_Auth_Source
 $authId
 

Detailed Description

Definition at line 12 of file Static.php.

Constructor & Destructor Documentation

◆ __construct()

sspmod_exampleauth_Auth_Source_Static::__construct (   $info,
  $config 
)

Constructor for this authentication source.

Parameters
array$infoInformation about this authentication source.
array$configConfiguration.

Definition at line 27 of file Static.php.

References $config, $info, and SimpleSAML\Utils\Attributes\normalizeAttributesArray().

27  {
28  assert('is_array($info)');
29  assert('is_array($config)');
30 
31  // Call the parent constructor first, as required by the interface
32  parent::__construct($info, $config);
33 
34 
35  // Parse attributes
36  try {
38  } catch(Exception $e) {
39  throw new Exception('Invalid attributes for authentication source ' .
40  $this->authId . ': ' . $e->getMessage());
41  }
42 
43  }
static normalizeAttributesArray($attributes)
Validate and normalize an array with attributes.
Definition: Attributes.php:80
$info
Definition: index.php:5
+ Here is the call graph for this function:

Member Function Documentation

◆ authenticate()

sspmod_exampleauth_Auth_Source_Static::authenticate ( $state)

Log in using static attributes.

Parameters
array&$stateInformation about the current authentication.

Definition at line 51 of file Static.php.

References $attributes, and $state.

51  {
52  assert('is_array($state)');
53 
54  $state['Attributes'] = $this->attributes;
55  }
$attributes
The attributes we return.
Definition: Static.php:18
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10

Field Documentation

◆ $attributes

sspmod_exampleauth_Auth_Source_Static::$attributes
private

The attributes we return.

Definition at line 18 of file Static.php.

Referenced by authenticate().


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