ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
SessionNotOnOrAfter.php
Go to the documentation of this file.
1
<?php
2
3
namespace
SAML2\Assertion\Validation\ConstraintValidator
;
4
5
use
SAML2\Assertion
;
6
use
SAML2\Assertion\Validation\AssertionConstraintValidator
;
7
use
SAML2\Assertion\Validation\Result
;
8
use
SAML2\Utilities\Temporal
;
9
10
class
SessionNotOnOrAfter
implements
11
AssertionConstraintValidator
12
{
13
public
function
validate
(
Assertion
$assertion,
Result
$result
)
14
{
15
$sessionNotOnOrAfterTimestamp = $assertion->
getSessionNotOnOrAfter
();
16
$currentTime =
Temporal::getTime
();
17
if
($sessionNotOnOrAfterTimestamp && $sessionNotOnOrAfterTimestamp <= $currentTime - 60) {
18
$result->
addError
(
19
'Received an assertion with a session that has expired. Check clock synchronization on IdP and SP.'
20
);
21
}
22
}
23
}
SAML2\Assertion\Validation\ConstraintValidator\SessionNotOnOrAfter
Definition:
SessionNotOnOrAfter.php:10
SAML2\Assertion\Validation\AssertionConstraintValidator
Definition:
AssertionConstraintValidator.php:7
$result
$result
Definition:
CleanUpTest.php:463
Result
SAML2\Assertion
Definition:
Assertion.php:17
SAML2\Assertion\Validation\ConstraintValidator\SessionNotOnOrAfter\validate
validate(Assertion $assertion, Result $result)
Definition:
SessionNotOnOrAfter.php:13
SAML2\Utilities\Temporal\getTime
static getTime()
Getter for getting the current timestamp.
Definition:
Temporal.php:13
SAML2\Assertion\Validation\Result
Simple Result object.
Definition:
Result.php:10
SAML2\Assertion
Definition:
Decrypter.php:3
SAML2\Assertion\Validation\Result\addError
addError($message)
Definition:
Result.php:20
SAML2\Assertion\Validation\ConstraintValidator
Definition:
NotBefore.php:3
SAML2\Assertion\getSessionNotOnOrAfter
getSessionNotOnOrAfter()
Retrieve the session expiration timestamp.
Definition:
Assertion.php:997
AssertionConstraintValidator
Temporal
libs
composer
vendor
simplesamlphp
saml2
src
SAML2
Assertion
Validation
ConstraintValidator
SessionNotOnOrAfter.php
Generated on Sat Jan 18 2025 19:01:09 for ILIAS by
1.8.13 (using
Doxyfile
)