fix id_token validity not correctly evaluated #1662
This commit is contained in:
parent
59d163c663
commit
5324da2c15
|
@ -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)"
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue