refactor deprecated methodes

This commit is contained in:
El. Abdellah
2021-11-11 14:42:02 +01:00
parent 4b6ba3e661
commit 670a76807c
3 changed files with 15 additions and 6 deletions

View File

@@ -245,6 +245,14 @@ class KeycloakBearerUser implements UserInterface, \Serializable
return $this->preferred_username;
}
/**
* @return string
*/
public function getUserIdentifier(): string
{
return $this->preferred_username;
}
/**
* Removes sensitive data from the user.
*
@@ -298,4 +306,4 @@ class KeycloakBearerUser implements UserInterface, \Serializable
$this->accessToken
) = unserialize($serialized, ['allowed_classes' => false]);
}
}
}