Skip to content
Snippets Groups Projects
Commit e714e588 authored by Marco Villegas's avatar Marco Villegas Committed by Neil Drumm
Browse files

Issue #3436607: Use the new KC createdTimestamp property for integrity check

parent e9449376
No related branches found
No related tags found
3 merge requests!312Issue # 3494493: Documentation: Document Maintainer Widget,!299Remove heroes from components field. Update CTA section and add variants.,!237Use the new KC createdTimestamp property for integrity check
......@@ -227,7 +227,7 @@ class KeycloakIntegration {
throw new \Exception(sprintf('uid: %s Keycloak(%s=%s) does not match Drupal(%s=%s)', $uid, $kc_name, $kc_record[$kc_name], $drupal_name, $drupal_result[$drupal_name]));
}
}
if ($kc_record['attributes']['legacy_created'][0]/1000 !== (int) $drupal_result['created']) {
if ($kc_record['createdTimestamp']/1000 !== (int) $drupal_result['created']) {
throw new \Exception(sprintf('uid: %s Keycloak(legacy_created=%s) does not match Drupal(created=%s)', $uid, $kc_record['legacy_created'], $drupal_result['created']));
}
if (empty($kc_record['totp']) && !empty($drupal_result['tfa'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment