Commit a9d957cc authored by dcoutadeur dcoutadeur's avatar dcoutadeur dcoutadeur
Browse files

fix id_token validity not correctly evaluated #1662

parent 5aab68e5
......@@ -587,7 +587,7 @@ sub checkIDTokenValidity {
$self->lmLog( "Auth time was not returned by OP $op", 'error' );
return 0;
}
if ( $auth_time + $max_age > time ) {
if ( time > $auth_time + $max_age ) {
$self->lmLog(
"Authentication time ($auth_time) is too old (Max age: $max_age)",
'error'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment