-
-
Notifications
You must be signed in to change notification settings - Fork 77
Better Authentication Extensions #426
Copy link
Copy link
Closed
Description
Description
At the moment, the Webauthn\AuthenticationExtension is kind of generic extension object that carries the input and output data.
It could be great to create dedicated objects for known extensions and enhance the way they are loaded.
Example
Example for uvm
final class UvmExtensionInput extends AuthenticationExtension
{
private function __construct(bool $requested) {
parent::__construct('uvm', $requested);
}
public static function requested(): self
{
return new self(true);
}
public static function notRequested(): self
{
return new self(false);
}
}
//Usage:
UvmExtensionInput::requested();final class UvmExtensionOutput extends AuthenticationExtension
{
/**
* @return array<string, positive-int>
*/
public static function entries(): array
{
return ...
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request