Skip to content

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Nov 12, 2025

Description

When creating and verifying the passkey, we use Craft::$app->getRequest()->getHostName() to get the right domain. However, when logging in a user via passkey, we rely on globals. That works in the majority of cases, but causes issues in the Cloud.

Fix: ensure that we use the same method to get the domain when building the server request used to verify a passkey.

@olivierbon, @brianjhanson - thanks for doing all the investigative work and coming up with the initial solution. I just tweaked it a bit.

Related issues

n/a; reported via support

@i-just i-just requested a review from brandonkelly November 12, 2025 08:57
@brandonkelly brandonkelly merged commit 16e2750 into 5.x Nov 13, 2025
2 checks passed
@brandonkelly brandonkelly deleted the bugfix/logging-in-with-passkey-and-host-name branch November 13, 2025 01:09
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.

3 participants