-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Fix default rpId in virtual authenticator #16428
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
[py] Fix default rpId in virtual authenticator #16428
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
PR Code Suggestions ✨Latest suggestions up to 8899e13
Previous suggestionsSuggestions up to commit c56ad9a
|
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.
LGTM! Should we have a test to prevent this in future?
the RBE failure seems unrelated. |
User description
🔗 Related Issues
Fixes #16424
💥 What does this PR do?
This PR sets
rp_id
to None in theCredential
created byCredential.from_dict()
if therpId
key is missing. This was inadvertently changed in #16174, causing a breaking change.🔄 Types of changes
PR Type
Bug fix
Description
Fix
Credential.from_dict()
to handle missingrpId
key gracefullyRestore default
rp_id
toNone
whenrpId
is absent from input dictionaryResolve regression introduced in previous virtual authenticator changes
Diagram Walkthrough
File Walkthrough
virtual_authenticator.py
Use safe dictionary access for rpId field
py/selenium/webdriver/common/virtual_authenticator.py
rpId
extraction from direct dictionary access to.get()
methodNone
whenrpId
key is missinguserHandle
field