proxmox/proxmox-tfa/src
Maximiliano Sandoval 5079ff6a3c tfa: webauthn: serialize OriginUrl following RFC6454
We serialize `OriginUrl` using the ASCII serialization mentioned at
[RFC6454] section 6.2 or [1]. Note that the unicode serialization is not
used widely adopted [2].

Note that `url::Url` serialize with a trailign slash, e.g.
https://foo.bar serializes as https://foo.bar/ which is not the origin
for this domain.

[RFC6454] https://www.rfc-editor.org/rfc/rfc6454
[1] https://html.spec.whatwg.org/multipage/browsers.html#ascii-serialisation-of-an-origin
[2] https://html.spec.whatwg.org/multipage/browsers.html#unicode-serialisation-of-an-origin

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-07-03 15:20:30 +02:00
..
api tfa: webauthn: serialize OriginUrl following RFC6454 2024-07-03 15:20:30 +02:00
lib.rs tree-wide: enable doc_cfg and doc_auto_cfg for docs 2024-07-02 11:59:53 +02:00
totp.rs various clippy fixes 2024-06-06 11:40:49 +02:00
types.rs proxmox-tfa: derive Copy, Clone and PartialEq on TfaType (for GUI) 2023-10-23 11:44:45 +02:00
u2f.rs remove needless borrows 2024-06-28 10:22:58 +02:00