Giter Club home page Giter Club logo

Comments (3)

aseigler avatar aseigler commented on August 11, 2024

For conformance particularly, assume everyone wants base64url encoding without padding.

from webauthn-rs.

Firstyear avatar Firstyear commented on August 11, 2024

The spec was unclear (or I missed it?) about the base64 as url-safe or not. At the moment I attempt both url and standard, and fail only if both fail. I've opened a seperate issue to handle this issue.

This issue is more about the fact that there are a number of ArrayBuffer types that I just can't seem to handle nicely with Serde, so as a result my client js and server are base64'ing data that perhaps should not be. For example, the rawId in authenticate I am base64 encoding, making it equivalent to Id field.

So to be properly compliant with "any javascript client" parts, I should not require base64 on these arrayBuffer types incorrectly. :)

from webauthn-rs.

Firstyear avatar Firstyear commented on August 11, 2024

Closing because it's not possible to create json types that can become a Uint8Array on a browser. You must base64 these datafields. It surprises me that the webauthn standard does not just say "base64 these" and then leave it to the navigator.credentials api to handle it, but alas, instead all javascript implementations now have the extreme joy of working out how to get from base64 to a uint8Array and tampering with the internals of any server issued request.

from webauthn-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.