Phase 0: Fundament für Inhaus
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s

- Laravel 13 mit Filament 5 (Admin), Inertia 3 + Vue 3 + Vuetify 4 (Material 3)
- Anmeldung über Fortify (Login, Passwort vergessen/ändern), keine Selbstregistrierung
- Profil mit Profilbild (WebP in festen Größen), Personenseiten, Header mit Avatar-Menü
- Material-3-Farbschema aus der Primärfarbe, hell/dunkel/System pro Person
- Basis-Branding (Portalname, Logo, Primärfarbe) im Admin unter „Erscheinungsbild“
- Benutzerverwaltung im Admin, Zugang vorläufig über is_admin
- vendor/ (ohne Dev-Pakete) und Frontend-Build mitversioniert, Dev-Pakete in vendor-dev/
- PHPUnit-Tests gegen MySQL/MariaDB, Forgejo-CI-Matrix, Docker-Entwicklungsumgebung
- VERSION, CHANGELOG.md und CONTRIBUTING.md mit Release-Ablauf

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-25 20:35:30 +00:00
parent 7197eaebf2
commit 9c0f8de791
15771 changed files with 1564103 additions and 5 deletions

View file

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
use Webauthn\AttestationStatement\AttestationObject;
class AttestationObjectLoaded implements WebauthnEvent
{
public function __construct(
public readonly AttestationObject $attestationObject
) {
}
public static function create(AttestationObject $attestationObject): self
{
return new self($attestationObject);
}
}

View file

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
use Webauthn\AttestationStatement\AttestationStatement;
class AttestationStatementLoaded implements WebauthnEvent
{
public function __construct(
public readonly AttestationStatement $attestationStatement
) {
}
public static function create(AttestationStatement $attestationStatement): self
{
return new self($attestationStatement);
}
}

View file

@ -0,0 +1,64 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
use LogicException;
use function sprintf;
use Throwable;
use Webauthn\AuthenticatorAssertionResponse;
use Webauthn\CredentialRecord;
use Webauthn\PublicKeyCredentialRequestOptions;
use Webauthn\PublicKeyCredentialSource;
class AuthenticatorAssertionResponseValidationFailedEvent
{
public function __construct(
public readonly CredentialRecord $credentialRecord,
public readonly AuthenticatorAssertionResponse $authenticatorAssertionResponse,
public readonly PublicKeyCredentialRequestOptions $publicKeyCredentialRequestOptions,
public readonly string $host,
public readonly ?string $userHandle,
public readonly Throwable $throwable
) {
}
/**
* @deprecated since 5.3, use credentialRecord instead. Will be removed in 6.0.
*/
public function __get(string $name): mixed
{
if ($name === 'credentialSource') {
return $this->getPublicKeyCredentialSource();
}
throw new LogicException(sprintf('Undefined property: %s::$%s', self::class, $name));
}
/**
* @deprecated since 5.3, use credentialRecord instead. Will be removed in 6.0.
*/
public function getPublicKeyCredentialSource(): PublicKeyCredentialSource
{
if ($this->credentialRecord instanceof PublicKeyCredentialSource) {
return $this->credentialRecord;
}
return new PublicKeyCredentialSource(
$this->credentialRecord->publicKeyCredentialId,
$this->credentialRecord->type,
$this->credentialRecord->transports,
$this->credentialRecord->attestationType,
$this->credentialRecord->trustPath,
$this->credentialRecord->aaguid,
$this->credentialRecord->credentialPublicKey,
$this->credentialRecord->userHandle,
$this->credentialRecord->counter,
$this->credentialRecord->otherUI,
$this->credentialRecord->backupEligible,
$this->credentialRecord->backupStatus,
$this->credentialRecord->uvInitialized,
);
}
}

View file

@ -0,0 +1,62 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
use LogicException;
use function sprintf;
use Webauthn\AuthenticatorAssertionResponse;
use Webauthn\CredentialRecord;
use Webauthn\PublicKeyCredentialRequestOptions;
use Webauthn\PublicKeyCredentialSource;
class AuthenticatorAssertionResponseValidationSucceededEvent
{
public function __construct(
public readonly AuthenticatorAssertionResponse $authenticatorAssertionResponse,
public readonly PublicKeyCredentialRequestOptions $publicKeyCredentialRequestOptions,
public readonly string $host,
public readonly ?string $userHandle,
public readonly CredentialRecord $credentialRecord
) {
}
/**
* @deprecated since 5.3, use credentialRecord instead. Will be removed in 6.0.
*/
public function __get(string $name): mixed
{
if ($name === 'publicKeyCredentialSource') {
return $this->getPublicKeyCredentialSource();
}
throw new LogicException(sprintf('Undefined property: %s::$%s', self::class, $name));
}
/**
* @deprecated since 5.3, use credentialRecord instead. Will be removed in 6.0.
*/
public function getPublicKeyCredentialSource(): PublicKeyCredentialSource
{
if ($this->credentialRecord instanceof PublicKeyCredentialSource) {
return $this->credentialRecord;
}
return new PublicKeyCredentialSource(
$this->credentialRecord->publicKeyCredentialId,
$this->credentialRecord->type,
$this->credentialRecord->transports,
$this->credentialRecord->attestationType,
$this->credentialRecord->trustPath,
$this->credentialRecord->aaguid,
$this->credentialRecord->credentialPublicKey,
$this->credentialRecord->userHandle,
$this->credentialRecord->counter,
$this->credentialRecord->otherUI,
$this->credentialRecord->backupEligible,
$this->credentialRecord->backupStatus,
$this->credentialRecord->uvInitialized,
);
}
}

View file

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
use Throwable;
use Webauthn\AuthenticatorAttestationResponse;
use Webauthn\PublicKeyCredentialCreationOptions;
readonly class AuthenticatorAttestationResponseValidationFailedEvent
{
public function __construct(
public AuthenticatorAttestationResponse $authenticatorAttestationResponse,
public PublicKeyCredentialCreationOptions $publicKeyCredentialCreationOptions,
public string $host,
public Throwable $throwable
) {
}
}

View file

@ -0,0 +1,61 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
use LogicException;
use function sprintf;
use Webauthn\AuthenticatorAttestationResponse;
use Webauthn\CredentialRecord;
use Webauthn\PublicKeyCredentialCreationOptions;
use Webauthn\PublicKeyCredentialSource;
class AuthenticatorAttestationResponseValidationSucceededEvent
{
public function __construct(
public readonly AuthenticatorAttestationResponse $authenticatorAttestationResponse,
public readonly PublicKeyCredentialCreationOptions $publicKeyCredentialCreationOptions,
public readonly string $host,
public readonly CredentialRecord $credentialRecord
) {
}
/**
* @deprecated since 5.3, use credentialRecord instead. Will be removed in 6.0.
*/
public function __get(string $name): mixed
{
if ($name === 'publicKeyCredentialSource') {
return $this->getPublicKeyCredentialSource();
}
throw new LogicException(sprintf('Undefined property: %s::$%s', self::class, $name));
}
/**
* @deprecated since 5.3, use credentialRecord instead. Will be removed in 6.0.
*/
public function getPublicKeyCredentialSource(): PublicKeyCredentialSource
{
if ($this->credentialRecord instanceof PublicKeyCredentialSource) {
return $this->credentialRecord;
}
return new PublicKeyCredentialSource(
$this->credentialRecord->publicKeyCredentialId,
$this->credentialRecord->type,
$this->credentialRecord->transports,
$this->credentialRecord->attestationType,
$this->credentialRecord->trustPath,
$this->credentialRecord->aaguid,
$this->credentialRecord->credentialPublicKey,
$this->credentialRecord->userHandle,
$this->credentialRecord->counter,
$this->credentialRecord->otherUI,
$this->credentialRecord->backupEligible,
$this->credentialRecord->backupStatus,
$this->credentialRecord->uvInitialized,
);
}
}

View file

@ -0,0 +1,64 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
use LogicException;
use function sprintf;
use Webauthn\CredentialRecord;
use Webauthn\PublicKeyCredentialSource;
/**
* Event dispatched when the backup eligibility flag (BE) changes.
*
* The BE flag indicates whether the authenticator is capable of backing up
* the credential. A change in this flag may indicate device capabilities have changed.
*/
final readonly class BackupEligibilityChangedEvent implements WebauthnEvent
{
public function __construct(
public CredentialRecord $credentialRecord,
public ?bool $previousValue,
public ?bool $newValue
) {
}
/**
* @deprecated since 5.3, use credentialRecord instead. Will be removed in 6.0.
*/
public function __get(string $name): mixed
{
if ($name === 'publicKeyCredentialSource') {
return $this->getPublicKeyCredentialSource();
}
throw new LogicException(sprintf('Undefined property: %s::$%s', self::class, $name));
}
/**
* @deprecated since 5.3, use credentialRecord instead. Will be removed in 6.0.
*/
public function getPublicKeyCredentialSource(): PublicKeyCredentialSource
{
if ($this->credentialRecord instanceof PublicKeyCredentialSource) {
return $this->credentialRecord;
}
return new PublicKeyCredentialSource(
$this->credentialRecord->publicKeyCredentialId,
$this->credentialRecord->type,
$this->credentialRecord->transports,
$this->credentialRecord->attestationType,
$this->credentialRecord->trustPath,
$this->credentialRecord->aaguid,
$this->credentialRecord->credentialPublicKey,
$this->credentialRecord->userHandle,
$this->credentialRecord->counter,
$this->credentialRecord->otherUI,
$this->credentialRecord->backupEligible,
$this->credentialRecord->backupStatus,
$this->credentialRecord->uvInitialized,
);
}
}

View file

@ -0,0 +1,65 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
use LogicException;
use function sprintf;
use Webauthn\CredentialRecord;
use Webauthn\PublicKeyCredentialSource;
/**
* Event dispatched when the backup status flag (BS) changes.
*
* The BS flag indicates whether the credential is currently backed up.
* A change in this flag, especially from true to false, may indicate
* that the user should add an additional authenticator for redundancy.
*/
final readonly class BackupStatusChangedEvent implements WebauthnEvent
{
public function __construct(
public CredentialRecord $credentialRecord,
public ?bool $previousValue,
public ?bool $newValue
) {
}
/**
* @deprecated since 5.3, use credentialRecord instead. Will be removed in 6.0.
*/
public function __get(string $name): mixed
{
if ($name === 'publicKeyCredentialSource') {
return $this->getPublicKeyCredentialSource();
}
throw new LogicException(sprintf('Undefined property: %s::$%s', self::class, $name));
}
/**
* @deprecated since 5.3, use credentialRecord instead. Will be removed in 6.0.
*/
public function getPublicKeyCredentialSource(): PublicKeyCredentialSource
{
if ($this->credentialRecord instanceof PublicKeyCredentialSource) {
return $this->credentialRecord;
}
return new PublicKeyCredentialSource(
$this->credentialRecord->publicKeyCredentialId,
$this->credentialRecord->type,
$this->credentialRecord->transports,
$this->credentialRecord->attestationType,
$this->credentialRecord->trustPath,
$this->credentialRecord->aaguid,
$this->credentialRecord->credentialPublicKey,
$this->credentialRecord->userHandle,
$this->credentialRecord->counter,
$this->credentialRecord->otherUI,
$this->credentialRecord->backupEligible,
$this->credentialRecord->backupStatus,
$this->credentialRecord->uvInitialized,
);
}
}

View file

@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
final readonly class BeforeCertificateChainValidation implements WebauthnEvent
{
/**
* @param string[] $untrustedCertificates
*/
public function __construct(
public array $untrustedCertificates,
public string $trustedCertificate
) {
}
/**
* @param string[] $untrustedCertificates
*/
public static function create(array $untrustedCertificates, string $trustedCertificate): self
{
return new self($untrustedCertificates, $trustedCertificate);
}
}

View file

@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
use Psr\EventDispatcher\EventDispatcherInterface;
interface CanDispatchEvents
{
public function setEventDispatcher(EventDispatcherInterface $eventDispatcher): void;
}

View file

@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
final readonly class CertificateChainValidationFailed implements WebauthnEvent
{
/**
* @param string[] $untrustedCertificates
*/
public function __construct(
public array $untrustedCertificates,
public string $trustedCertificate
) {
}
/**
* @param string[] $untrustedCertificates
*/
public static function create(array $untrustedCertificates, string $trustedCertificate): self
{
return new self($untrustedCertificates, $trustedCertificate);
}
}

View file

@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
final readonly class CertificateChainValidationSucceeded implements WebauthnEvent
{
/**
* @param string[] $untrustedCertificates
*/
public function __construct(
public array $untrustedCertificates,
public string $trustedCertificate
) {
}
/**
* @param string[] $untrustedCertificates
*/
public static function create(array $untrustedCertificates, string $trustedCertificate): self
{
return new self($untrustedCertificates, $trustedCertificate);
}
}

View file

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
use Webauthn\MetadataService\Statement\MetadataStatement;
final readonly class MetadataStatementFound implements WebauthnEvent
{
public function __construct(
public MetadataStatement $metadataStatement
) {
}
public static function create(MetadataStatement $metadataStatement): self
{
return new self($metadataStatement);
}
}

View file

@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
use Psr\EventDispatcher\EventDispatcherInterface;
final class NullEventDispatcher implements EventDispatcherInterface
{
public function dispatch(object $event): object
{
return $event;
}
}

View file

@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace Webauthn\Event;
interface WebauthnEvent
{
}