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

Fix issue when storing session data from Webauthn in a mongo database #1056

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

chav170
Copy link
Contributor

@chav170 chav170 commented Nov 22, 2023

When configuring session data in MongoDB and storing the webauthn objects in session, throws following error error:

[MongoDB\Driver\Exception\UnexpectedValueException] Detected invalid UTF-8 for field path "$set.data":

This fix encode the object before write it in session and decode after read.

@chav170 chav170 requested a review from steinkel November 22, 2023 16:58
@steinkel steinkel merged commit 50fd9e1 into 11.next-cake4 Nov 22, 2023
20 checks passed
@steinkel steinkel deleted the hotfix/yubico-webauth-utf8-mongo branch November 22, 2023 18:15
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