ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Static.php
Go to the documentation of this file.
1
<?
php
2
12
class
sspmod_exampleauth_Auth_Source_Static
extends
SimpleSAML_Auth_Source
{
13
14
18
private
$attributes
;
19
20
27
public
function
__construct
(
$info
,
$config
) {
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
{
37
$this->attributes =
SimpleSAML\Utils\Attributes::normalizeAttributesArray
(
$config
);
38
}
catch
(
Exception
$e) {
39
throw
new
Exception
(
'Invalid attributes for authentication source '
.
40
$this->authId .
': '
. $e->getMessage());
41
}
42
43
}
44
45
51
public
function
authenticate
(&
$state
) {
52
assert(is_array(
$state
));
53
54
$state
[
'Attributes'
] =
$this->attributes
;
55
}
56
57
}
SimpleSAML\Utils\Attributes\normalizeAttributesArray
static normalizeAttributesArray($attributes)
Validate and normalize an array with attributes.
Definition:
Attributes.php:79
$config
$config
Definition:
bootstrap.php:15
SimpleSAML_Auth_Source
sspmod_exampleauth_Auth_Source_Static\$attributes
$attributes
The attributes we return.
Definition:
Static.php:18
$state
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition:
linkback.php:10
sspmod_exampleauth_Auth_Source_Static
Definition:
Static.php:12
sspmod_exampleauth_Auth_Source_Static\authenticate
authenticate(&$state)
Log in using static attributes.
Definition:
Static.php:51
sspmod_exampleauth_Auth_Source_Static\__construct
__construct($info, $config)
Constructor for this authentication source.
Definition:
Static.php:27
php
$info
$info
Definition:
index.php:5
Exception
libs
composer
vendor
simplesamlphp
simplesamlphp
modules
exampleauth
lib
Auth
Source
Static.php
Generated on Thu Jan 30 2025 19:01:32 for ILIAS by
1.8.13 (using
Doxyfile
)