feat: adjust oauth2 implementation for TYPO3 backend login
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user