Skip to content
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

Upgrade Spomky webauthn dependencies #175

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pablothedude
Copy link
Contributor

@pablothedude pablothedude commented Feb 14, 2025

Also removed the custom internal controller logic.
So when the Webauthn flow is started it will be
completely handled by the bundle and the configuration
can be used without hassle.

@pablothedude pablothedude marked this pull request as draft February 14, 2025 16:36
@pablothedude pablothedude force-pushed the feature/upgrade-webauthn-library branch 6 times, most recently from 76d410a to ea71576 Compare February 21, 2025 16:02
@pablothedude pablothedude force-pushed the feature/upgrade-webauthn-library branch from ea71576 to f84595d Compare February 24, 2025 14:56
Also removed the custom internal controller logic.
So when the Webauthn flow is started it will be
completely handled by the bundle and the configuration
can be used without hassle.
@pablothedude pablothedude force-pushed the feature/upgrade-webauthn-library branch from f84595d to aca0dea Compare February 24, 2025 15:03
@pablothedude pablothedude marked this pull request as ready for review February 24, 2025 15:07
@pablothedude pablothedude requested a review from johanib February 24, 2025 15:07
$nameId = $event->getUser()->name;
$logger = WithContextLogger::from($this->logger, ['nameId' => $nameId]);

if ($routeName == 'webauthn.controller.security.main.creation.result') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible to use constant? (also in twig)

$this->write("<info>Migating: {$id}</info>");

$transports = json_encode(unserialize($transports), JSON_THROW_ON_ERROR);
$otherUi = json_encode(unserialize($otherUi), JSON_THROW_ON_ERROR);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How resilient should this migration be?
If we're talking about a couple of thousand rows, this is fine.

If millions, maybe catch the exception and continue, so it can continue where it left off if the first attempt to migrate everything fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants