Skip to content

Conversation

@AlfioEmanueleFresta
Copy link
Member

@AlfioEmanueleFresta AlfioEmanueleFresta commented Dec 26, 2025

Implements Relying Party ID (RP ID) validation per the WebAuthn L3 spec.

Fixes #137

Copy link
Collaborator

@msirringhaus msirringhaus left a comment

Choose a reason for hiding this comment

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

Looking good to me! Only one additional test would be nice, see inline comment.

Also note that I have not double checked with the spec, if the RpId-checks done here are sufficient. I'm taking your word for it :)


#[test]
fn test_relying_party_id_rejects_ip_address() {
let result = RelyingPartyId::try_from("127.0.0.1");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we have an IPv6-test as well?

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.

Relying Party ID (RPID) validation

3 participants