Skip to content

fix(webauthn): default rp.id to effective domain and reject ip-literal rp ids#285

Merged
AlfioEmanueleFresta merged 1 commit into
masterfrom
fix/rpid-default-and-validate
Jun 21, 2026
Merged

fix(webauthn): default rp.id to effective domain and reject ip-literal rp ids#285
AlfioEmanueleFresta merged 1 commit into
masterfrom
fix/rpid-default-and-validate

Conversation

@AlfioEmanueleFresta

Copy link
Copy Markdown
Member

Registration now defaults a missing RP ID to the caller effective domain, matching the assertion ceremony and the spec, instead of failing. Origins whose host is an IP address are rejected rather than used as an RP ID. This removes an inconsistency between the create and get paths and closes a malformed RP ID case.

@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 20, 2026 14:06
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the fix/rpid-default-and-validate branch from c3d608e to 4108df7 Compare June 21, 2026 15:07
@AlfioEmanueleFresta AlfioEmanueleFresta merged commit c3f8597 into master Jun 21, 2026
7 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the fix/rpid-default-and-validate branch June 21, 2026 15:07
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.

1 participant