fix id_token validity not correctly evaluated #1662

This commit is contained in:
dcoutadeur 2019-02-28 09:54:54 +01:00 committed by Xavier Guimard
parent 59d163c663
commit 5324da2c15
1 changed files with 1 additions and 1 deletions

View File

@ -564,7 +564,7 @@ sub checkIDTokenValidity {
$self->logger->error("Auth time was not returned by OP $op");
return 0;
}
if ( $auth_time + $max_age > time ) {
if ( time > $auth_time + $max_age ) {
$self->userLogger->error(
"Authentication time ($auth_time) is too old (Max age: $max_age)"
);