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
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:
parent
7197eaebf2
commit
9c0f8de791
15771 changed files with 1564103 additions and 5 deletions
13
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/AppIdExcludeInputExtension.php
vendored
Normal file
13
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/AppIdExcludeInputExtension.php
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
final class AppIdExcludeInputExtension extends AuthenticationExtension
|
||||
{
|
||||
public static function enable(string $value): AuthenticationExtension
|
||||
{
|
||||
return self::create('appidExclude', $value);
|
||||
}
|
||||
}
|
||||
18
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/AppIdInputExtension.php
vendored
Normal file
18
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/AppIdInputExtension.php
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
final class AppIdInputExtension extends AuthenticationExtension
|
||||
{
|
||||
public static function enable(): AuthenticationExtension
|
||||
{
|
||||
return self::create('appid', true);
|
||||
}
|
||||
|
||||
public static function disable(): AuthenticationExtension
|
||||
{
|
||||
return self::create('appid', false);
|
||||
}
|
||||
}
|
||||
19
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/AuthenticationExtension.php
vendored
Normal file
19
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/AuthenticationExtension.php
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
class AuthenticationExtension
|
||||
{
|
||||
public function __construct(
|
||||
public readonly string $name,
|
||||
public readonly mixed $value
|
||||
) {
|
||||
}
|
||||
|
||||
public static function create(string $name, mixed $value): self
|
||||
{
|
||||
return new self($name, $value);
|
||||
}
|
||||
}
|
||||
26
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/AuthenticationExtensionLoader.php
vendored
Normal file
26
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/AuthenticationExtensionLoader.php
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
use CBOR\CBORObject;
|
||||
use CBOR\MapObject;
|
||||
use Webauthn\Exception\AuthenticationExtensionException;
|
||||
|
||||
abstract class AuthenticationExtensionLoader
|
||||
{
|
||||
public static function load(CBORObject $object): AuthenticationExtensions
|
||||
{
|
||||
$object instanceof MapObject || throw AuthenticationExtensionException::create('Invalid extension object');
|
||||
/** @var array<string, mixed> $data */
|
||||
$data = $object->normalize();
|
||||
return AuthenticationExtensions::create(
|
||||
array_map(
|
||||
fn (mixed $value, string $key) => AuthenticationExtension::create($key, $value),
|
||||
$data,
|
||||
array_keys($data)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
120
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/AuthenticationExtensions.php
vendored
Normal file
120
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/AuthenticationExtensions.php
vendored
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
use function array_key_exists;
|
||||
use ArrayAccess;
|
||||
use ArrayIterator;
|
||||
use function count;
|
||||
use const COUNT_NORMAL;
|
||||
use Countable;
|
||||
use function is_string;
|
||||
use Iterator;
|
||||
use IteratorAggregate;
|
||||
use function sprintf;
|
||||
use Webauthn\Exception\AuthenticationExtensionException;
|
||||
|
||||
/**
|
||||
* @implements IteratorAggregate<string, AuthenticationExtension>
|
||||
* @implements ArrayAccess<string, AuthenticationExtension>
|
||||
*/
|
||||
final class AuthenticationExtensions implements Countable, IteratorAggregate, ArrayAccess
|
||||
{
|
||||
/**
|
||||
* @var array<string, AuthenticationExtension>
|
||||
*/
|
||||
public array $extensions;
|
||||
|
||||
/**
|
||||
* @param array<array-key, mixed|AuthenticationExtension> $extensions
|
||||
*/
|
||||
public function __construct(array $extensions = [])
|
||||
{
|
||||
$list = [];
|
||||
foreach ($extensions as $key => $extension) {
|
||||
if ($extension instanceof AuthenticationExtension) {
|
||||
$list[$extension->name] = $extension;
|
||||
|
||||
continue;
|
||||
}
|
||||
if (is_string($key)) {
|
||||
$list[$key] = AuthenticationExtension::create($key, $extension);
|
||||
continue;
|
||||
}
|
||||
throw new AuthenticationExtensionException('Invalid extension');
|
||||
}
|
||||
$this->extensions = $list;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<array-key, AuthenticationExtension> $extensions
|
||||
*/
|
||||
public static function create(array $extensions = []): static
|
||||
{
|
||||
return new static($extensions);
|
||||
}
|
||||
|
||||
public function has(string $key): bool
|
||||
{
|
||||
return array_key_exists($key, $this->extensions);
|
||||
}
|
||||
|
||||
public function get(string $key): AuthenticationExtension
|
||||
{
|
||||
$this->has($key) || throw AuthenticationExtensionException::create(sprintf(
|
||||
'The extension with key "%s" is not available',
|
||||
$key
|
||||
));
|
||||
|
||||
return $this->extensions[$key];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<string, AuthenticationExtension>
|
||||
*/
|
||||
public function getIterator(): Iterator
|
||||
{
|
||||
return new ArrayIterator($this->extensions);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param 0|1 $mode
|
||||
*/
|
||||
public function count(int $mode = COUNT_NORMAL): int
|
||||
{
|
||||
return count($this->extensions, $mode);
|
||||
}
|
||||
|
||||
public function offsetExists(mixed $offset): bool
|
||||
{
|
||||
return array_key_exists($offset, $this->extensions);
|
||||
}
|
||||
|
||||
public function offsetGet(mixed $offset): AuthenticationExtension
|
||||
{
|
||||
return $this->extensions[$offset];
|
||||
}
|
||||
|
||||
public function offsetSet(mixed $offset, mixed $value): void
|
||||
{
|
||||
if ($value === null) {
|
||||
return;
|
||||
}
|
||||
if ($value instanceof AuthenticationExtension) {
|
||||
$this->extensions[$value->name] = $value;
|
||||
return;
|
||||
}
|
||||
if (is_string($offset)) {
|
||||
$this->extensions[$offset] = AuthenticationExtension::create($offset, $value);
|
||||
return;
|
||||
}
|
||||
throw new AuthenticationExtensionException('Invalid extension');
|
||||
}
|
||||
|
||||
public function offsetUnset(mixed $offset): void
|
||||
{
|
||||
unset($this->extensions[$offset]);
|
||||
}
|
||||
}
|
||||
18
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/CredentialPropertiesInputExtension.php
vendored
Normal file
18
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/CredentialPropertiesInputExtension.php
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
final class CredentialPropertiesInputExtension extends AuthenticationExtension
|
||||
{
|
||||
public static function enable(): AuthenticationExtension
|
||||
{
|
||||
return self::create('credProps', true);
|
||||
}
|
||||
|
||||
public static function disable(): AuthenticationExtension
|
||||
{
|
||||
return self::create('credProps', false);
|
||||
}
|
||||
}
|
||||
10
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/ExtensionOutputChecker.php
vendored
Normal file
10
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/ExtensionOutputChecker.php
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
interface ExtensionOutputChecker
|
||||
{
|
||||
public function check(AuthenticationExtensions $inputs, AuthenticationExtensions $outputs): void;
|
||||
}
|
||||
30
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/ExtensionOutputCheckerHandler.php
vendored
Normal file
30
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/ExtensionOutputCheckerHandler.php
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
class ExtensionOutputCheckerHandler
|
||||
{
|
||||
/**
|
||||
* @var ExtensionOutputChecker[]
|
||||
*/
|
||||
private array $checkers = [];
|
||||
|
||||
public static function create(): self
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
public function add(ExtensionOutputChecker $checker): void
|
||||
{
|
||||
$this->checkers[] = $checker;
|
||||
}
|
||||
|
||||
public function check(AuthenticationExtensions $inputs, AuthenticationExtensions $outputs): void
|
||||
{
|
||||
foreach ($this->checkers as $checker) {
|
||||
$checker->check($inputs, $outputs);
|
||||
}
|
||||
}
|
||||
}
|
||||
20
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/ExtensionOutputError.php
vendored
Normal file
20
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/ExtensionOutputError.php
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
use Exception;
|
||||
use Throwable;
|
||||
|
||||
class ExtensionOutputError extends Exception
|
||||
{
|
||||
public function __construct(
|
||||
public readonly AuthenticationExtension $authenticationExtension,
|
||||
string $message = '',
|
||||
int $code = 0,
|
||||
?Throwable $previous = null
|
||||
) {
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
38
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/LargeBlobInputExtension.php
vendored
Normal file
38
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/LargeBlobInputExtension.php
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
use function assert;
|
||||
use function in_array;
|
||||
|
||||
final class LargeBlobInputExtension extends AuthenticationExtension
|
||||
{
|
||||
public const REQUIRED = 'required';
|
||||
|
||||
public const PREFERRED = 'preferred';
|
||||
|
||||
public static function support(string $support): AuthenticationExtension
|
||||
{
|
||||
assert(in_array($support, [self::REQUIRED, self::PREFERRED], true), 'Invalid support value.');
|
||||
|
||||
return self::create('largeBlob', [
|
||||
'support' => $support,
|
||||
]);
|
||||
}
|
||||
|
||||
public static function read(): AuthenticationExtension
|
||||
{
|
||||
return self::create('largeBlob', [
|
||||
'read' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
public static function write(string $value): AuthenticationExtension
|
||||
{
|
||||
return self::create('largeBlob', [
|
||||
'write' => $value,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
final class PseudoRandomFunctionInputExtension extends AuthenticationExtension
|
||||
{
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
use function array_key_exists;
|
||||
use ParagonIE\ConstantTime\Base64UrlSafe;
|
||||
|
||||
final class PseudoRandomFunctionInputExtensionBuilder
|
||||
{
|
||||
/**
|
||||
* @var array{eval?: array{first: string, second?: string}, evalByCredential?: array<string, array{first: string, second?: string}>}
|
||||
*/
|
||||
private array $values = [];
|
||||
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
public static function create(): self
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
public function withInputs(string $first, null|string $second = null): self
|
||||
{
|
||||
$eval = [
|
||||
'first' => Base64UrlSafe::encodeUnpadded($first),
|
||||
];
|
||||
if ($second !== null) {
|
||||
$eval['second'] = Base64UrlSafe::encodeUnpadded($second);
|
||||
}
|
||||
$this->values['eval'] = $eval;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The credential ID is expected in its raw binary form, as stored in a credential record. The specification requires
|
||||
* the keys of the "evalByCredential" map to be the base64url encoding of the credential ID, so the encoding is done
|
||||
* here and MUST NOT be done by the caller.
|
||||
*/
|
||||
public function withCredentialInputs(string $credentialId, string $first, null|string $second = null): self
|
||||
{
|
||||
$eval = [
|
||||
'first' => Base64UrlSafe::encodeUnpadded($first),
|
||||
];
|
||||
if ($second !== null) {
|
||||
$eval['second'] = Base64UrlSafe::encodeUnpadded($second);
|
||||
}
|
||||
if (! array_key_exists('evalByCredential', $this->values)) {
|
||||
$this->values['evalByCredential'] = [];
|
||||
}
|
||||
$this->values['evalByCredential'][Base64UrlSafe::encodeUnpadded($credentialId)] = $eval;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function build(): PseudoRandomFunctionInputExtension
|
||||
{
|
||||
return new PseudoRandomFunctionInputExtension('prf', $this->values);
|
||||
}
|
||||
}
|
||||
18
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/UvmInputExtension.php
vendored
Normal file
18
vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/UvmInputExtension.php
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Webauthn\AuthenticationExtensions;
|
||||
|
||||
final class UvmInputExtension extends AuthenticationExtension
|
||||
{
|
||||
public static function enable(): AuthenticationExtension
|
||||
{
|
||||
return self::create('uvm', true);
|
||||
}
|
||||
|
||||
public static function disable(): AuthenticationExtension
|
||||
{
|
||||
return self::create('uvm', false);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue