-
-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webauthn login support #1376
base: main
Are you sure you want to change the base?
Webauthn login support #1376
Conversation
composer.lockClick to show 126 changes in this composer.lock filePackage changes
Dev Package changes
Settings · Docs · Powered by Private Packagist |
$publicKeyCredentialSource->getCounter() | ||
); | ||
} | ||
parent::saveCredentialSource($publicKeyCredentialSource); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this forward the $flush
parameter ? Otherwise, it is useless
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parent already calls the flush method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, the parent does not have this argument at all. So why adding it in the child class without using it ?
The composer.lock diff comment has been updated to reflect new changes in this PR. |
Hi @stof, Many thanks for the first comments. |
Hello, I have two questions
Is there anything I missed (env var or something else)?
#[ORM\Column(type: 'string', name: 'user_handle', length: 200, nullable: true, unique: true)]
private ?string $userHandle = null; Many thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some reviews passing by :)
@@ -20,4 +20,6 @@ | |||
SymfonyCasts\Bundle\VerifyEmail\SymfonyCastsVerifyEmailBundle::class => ['all' => true], | |||
KnpU\OAuth2ClientBundle\KnpUOAuth2ClientBundle::class => ['all' => true], | |||
Scheb\TwoFactorBundle\SchebTwoFactorBundle::class => ['all' => true], | |||
SpomkyLabs\CborBundle\SpomkyLabsCborBundle::class => ['all' => true], | |||
Webauthn\Bundle\WebauthnBundle::class => ['all' => true], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see that you need on twig files templates/user/login.html.twig
& templates/user/manage_authenticators.html.twig
some javascript, than seems to be kind of generic no?
maybe the bundle can provide them?
a raw js file (or perhaps a stimulus controller)
"d3": "^3.5.17", | ||
"instantsearch.js": "^2.7.4", | ||
"instantsearch.js": "^4.56.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this required with your PR?
public function manage(): Response | ||
{ | ||
$user = $this->getUser(); | ||
!$user instanceof User || $this->denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about #[CurrentUser] User $user
in the manage()
?
This PR aims at adding Webauthn login.
Webauthn is a web standard that allows the use of strong public key-based credentials for user authentication.
It is proposed in reaction of the recent issue where authentication failure is a key point for such attacks.