All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m41s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m48s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m15s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m17s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m48s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m59s
- Gemeinsamer Treiber-Unterbau (App\Identity\IdentityDriver, IdentityDrivers, IdentityLogin, AttributeProfile); Entra ID nutzt ihn ebenfalls - Plugins oidc, ldap und saml mit Profil- und Gruppen-Zuordnung - Admin: Verfahren wählen, Formular je Verfahren, zuletzt empfangene Angaben - onelogin/php-saml als neue Abhängigkeit Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
26 lines
1 KiB
PHP
26 lines
1 KiB
PHP
<?php
|
||
|
||
namespace App\Identity;
|
||
|
||
/**
|
||
* Eine beim Anbieter bestätigte Identität – so, wie sie der Kern weiterverarbeitet.
|
||
*/
|
||
final class ExternalUser
|
||
{
|
||
/**
|
||
* @param string $subject dauerhafte, eindeutige Kennung beim Anbieter
|
||
* @param array<string, mixed> $profile normalisiert (display_name, first_name, email, custom …), siehe AttributeProfile
|
||
* @param list<string> $groups Gruppenwerte für die Rollen-Zuordnung
|
||
* @param list<string> $appRoles
|
||
* @param array<string, mixed> $attributes Rohdaten – für „Zuletzt empfangen“ im Admin
|
||
* @param string|null|false $photo Binärdaten, null = kein Foto, false = unbekannt/nicht abgleichen
|
||
*/
|
||
public function __construct(
|
||
public readonly string $subject,
|
||
public readonly array $profile,
|
||
public readonly array $groups = [],
|
||
public readonly array $appRoles = [],
|
||
public readonly array $attributes = [],
|
||
public readonly string|null|false $photo = false,
|
||
) {}
|
||
}
|