Giter Club home page Giter Club logo

Comments (3)

MasterKale avatar MasterKale commented on May 11, 2024

generateAttestationOptions()'s optional supportedAlgorithmIDs argument is the current mechanism for specifying a custom array of supported algorithm identifiers for pubKeyCredParams. It's true it defaults to all current algorithms, but if you specify an array of algorithm ID's for supportedAlgorithmIDs those'll get used instead.

Does this work for your needs?

from simplewebauthn.

agektmr avatar agektmr commented on May 11, 2024

Ah, I overlooked it. Yes, I think this works fine.

This is an API design decision you'd make, but if I'd suggest my idea arrogantly, I would make the API as much as the same as PublicKeyCredentialCreationOptions and PublicKeyCredentialRequestOptions. In this issue's case, I'd make the API the same way as pubKeyCredParams so developers will have one less new API to learn to adopt this library. Same for other properties. I'd accept even if it will be a breaking change.

Anyway, kudos to your great work!

from simplewebauthn.

MasterKale avatar MasterKale commented on May 11, 2024

@agektmr Thank you for the feedback, I sincerely appreciate it. The goal of the library has always been to make implementing WebAuthn as simple as possible, but I'll be the first to admit there'll always be room for improvement.

Based on your comment above, I understand how complex I made things by trying to simplify how you specify algorithm IDs for pubKeyCredParams. I'm going to review the APIs of both generate...Options() methods and try to draw a more distinct line between what I simplify and what I expose more directly. I'm thinking there'll be a clear line between "typical use" and "advanced use" that I'll use to not simplify WebAuthn options that are for more advanced use cases.

Please stay tuned 🙇‍♂️

from simplewebauthn.

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.