feat: adjust oauth2 implementation for TYPO3 backend login

This commit is contained in:
Björn Fromme
2025-12-12 16:31:32 +01:00
parent e9c1dd8b9d
commit 79e5a3c12d
7 changed files with 24 additions and 9 deletions
+4
View File
@@ -49,6 +49,8 @@ class PersonalData
#[Assert\Valid(groups: ['personal_data'])]
public Communication $communication;
public array $roles = [];
public function __construct()
{
$this->address = new Address();
@@ -124,7 +126,9 @@ class PersonalData
public function getClaims(): array
{
return [
'id' => $this->personId,
'email' => $this->communication->email,
'roles' => $this->roles,
'profile' => [
'first_name' => $this->firstName,
'last_name' => $this->name,