concept Security & reliability
WebAuthn relying-party and origin binding
A passkey signature ties an assertion to its data. The relying party still has to decide whether that data matches its expected origin, RP ID, challenge, and credential.
What it means
A valid passkey signature is not enough to accept a sign-in. The service checking the response, called the relying party (RP), must verify that the assertion is for the origin it expects, carries the hash of its RP ID, and answers the challenge it issued for this request. It verifies the signature with the public key from the expected credential record. These checks answer different questions: a signature can be valid even when the signed response is not the one the service asked for.
Try it
Simulation: Start with the default assertion. The client-data type, origin, RP ID hash, fresh challenge, and credential record all match. The presence and user-verification requirements are satisfied, and the signature is stipulated to be valid. The result is subset-ok: none of these eight checks failed or is missing. No one has been signed in.
WebAuthn relying-party and origin binding
Explain why passkey assertions are bound to origin, RP ID and challenge
All selected modeled checks pass, not a complete WebAuthn verification or authenticated session.
Assertion: evaluated checks
- client-data typematch
- originmatch
- RP ID hashmatch
- challengematch
- expected credential recordmatch
- presencematch
- user verificationmatch
- assertion signaturematch
Decision
- FailedNone
- MissingNone
- OutcomeSubset checks pass only
Registration and assertion use different credential and proof conditions. A pass here covers only the selected checks; it does not establish a complete verification or authenticated session.
Evaluated inputs
- Required scenario evidence
- provided
- Ceremony
- assertion
- Observed client-data type
- matches-ceremony
- Expected origin check
- match
- RP ID hash check
- match
- Challenge evidence
- fresh-match
- Credential record or new ID
- appropriate
- Presence requirement
- satisfied
- User-verification requirement
- satisfied
- Cryptographic verification evidence
- valid
Only a subset of symbolic checks. Same-origin context, ordinary registration requiring user presence (no conditional mediation), no extensions, crossOrigin/topOrigin, backup flags, counters, algorithms, authenticator interaction or crypto. Registration proof is stipulated policy/attestation result, not an assertion signature; full registration needs further checks. Never infer a live authenticated session.
About this model
The controls set only a local, bounded scenario. The computed branch is not a verdict about a live system. Inputs listed as not evaluated did not participate in this branch after validation.
Reset restores the original inputs. It does not change the open or closed state of help or FAQ answers.
- Leave the signature evidence at
validand change only Expected origin check tomismatch. The origin is now the only failed check. The result changes todenybecause the valid signature does not make that origin acceptable. - Change the origin check to
unknown. There is no longer a known mismatch, but there is no confirmed origin match either. The result isunknown, not a pass. Do not accept the assertion in either case. - Select Reset to restore the original choices. Then switch Ceremony to
registration. Look at which credential and proof the model considers: it now checks a new credential ID and a registration attestation/policy result, not an existing record and an assertion signature. Reset returns to the default assertion.
The choices represent observations, not raw WebAuthn messages. Nothing here contacts a site, prompts an authenticator, or verifies a real signature.
What the signature binds
Suppose a service expects only the origin https://login.example.test and uses example.test as its RP ID. It has issued a fresh challenge, labeled challenge-A, and expects an existing credential, labeled credential-A. These are illustrative names, not values to enter in the simulation.
The browser's client data identifies the operation and carries the origin and challenge. The authenticator data carries the RP ID hash and flags, including user presence and user verification. For an assertion, the signature covers the authenticator data together with a hash of the client data. The RP uses the public key for credential-A to check that signature. It also compares what the response says with what it expected: an assertion rather than a registration, the allowed origin, the hash of example.test, and its outstanding challenge-A.
Consider https://login.example.test:8443. It has the same host as the expected origin, but a different port. A web origin of this kind distinguishes scheme, host, and port; the RP ID is a domain identifier, not that tuple. If the client data identifies the origin on port 8443, the origin check fails under this service's stated policy even if the RP ID hash matches. Likewise, a response from the right origin that answers an earlier challenge is not an answer to the current request.
In the registration contrast, the credential-record and proof labels change with the ceremony. That does not make the same stipulated success an assertion result. If the origin is a known mismatch and the proof is unknown, the model denies while still reporting missing proof evidence; it does not silently convert either observation into a match.
In practice
First identify the ceremony. For sign-in, look for the expected credential record and the assertion signature check made with its public key. For registration, the question is whether the new credential can be recorded under the RP's registration policy. A favorable attestation/policy result in the simulation is not an assertion signature from a previously registered credential.
Distinguish a failed check from a check you cannot account for. If the credential record is known to be wrong and the signature result is unavailable, the wrong record is already reason to deny; the signature remains unknown. If the only gap is the origin check, the next useful observation is the origin in the client data compared with the RP's expected origin. Do not substitute an RP ID match for that comparison.
This example assumes a same-origin context and ordinary registration requiring user presence. Real verification includes conditions outside the example, including context and credential backup-state checks. If the context or applicable requirements are unknown, stop rather than changing a service's settings on the strength of the simulation. Read subset-ok narrowly: the listed evidence fits this ceremony, not “this implementation is complete” or “this user has a session.”
Frequently asked questions
Editorial questions based on the listed sources and explicitly labeled local examples.
Is the RP ID the same as the origin?
No. RP ID is a domain identifier, whereas an origin includes scheme and host and the applicable port. The relying party verifies the expected origin and the RP ID hash separately.
Why is the challenge tied to the ceremony?
The relying party checks that returned client data contains the issued challenge. Freshness and appropriate challenge handling bind the response to the intended request, not to an arbitrary earlier ceremony.
Are user presence and user verification identical?
No. Presence and verification are different flags. Applicable user verification requirements depend on the relying party’s ceremony policy.
Is registration the same as assertion verification?
No. Registration establishes a credential record under its policy; assertion verifies a response using an appropriate existing record. The selected proof label therefore changes from registration attestation/policy to assertion signature. A symbolic pass performs neither operation and establishes no session.
Sources & model boundaries
Primary references used for this explanation. The interactive example is an educational model, not a live check.
- Web Authentication Level 3
Level 3 Recommendation, 25 August 2026; §§7.1, 7.2. WebAuthn Level 3 distinguishes registration and assertion. The relying party verifies the applicable client-data type, challenge, expected origin, RP ID hash, presence/verification flags and assertion signature under ceremony policy. §7.2 also specifies cross-origin context and backup-state checks; these and other omitted checks are outside the symbolic subset.
Checked .
- HTML: origins and sites
§7.1.1.1. A tuple origin distinguishes scheme, host, and port. It is not simply a registrable domain; this distinction matters when comparing an origin with an RP ID.
Checked .