linux-credentials/credentialsd

Require callers to pass top origin string instead of same origin flag

Aperta

#81 aperta il 13 ago 2025

 (0 commenti) (0 reazioni) (0 assegnatari)Rust (16 fork)auto 404
good first issuehelp wanted

Metriche repository

Star
 (234 stelle)
Metriche merge PR
 (Merge medio 33g 12h) (6 PR mergiate in 30 g)

Descrizione

WebAuthn level 3 allows cross-origin requests in some circumstances and added the topOrigin parameter to clientDataJson. The is_same_origin flag that we're currently passing can be derived from the origin and topOrigin strings.

Either neither or both of origin and topOrigin should be passed. If neither are passed, credentialsd should, eventually, determine the implicit origin of the request, or otherwise derive the is_same_origin flag based on the equality of the two. Callers without a distinction between origin and top-origin can just pass the same string.

This is a breaking API change.

Guida contributor