Giter VIP home page Giter VIP logo

Comments (9)

runcom avatar runcom commented on August 15, 2024

@Avielyo10 why are you using that? that's just a test script - you should borrow from that and just consume the API in your own Go code

from fido-device-onboard-rs.

Avielyo10 avatar Avielyo10 commented on August 15, 2024

I created a wrapper around the lib, I'm not using the test script.
This function is critical for using the lib, shouldn't the lib provide the validation?

from fido-device-onboard-rs.

Avielyo10 avatar Avielyo10 commented on August 15, 2024

@runcom https://github.com/Avielyo10/edge-api/blob/fdo-client/pkg/services/ownershipvoucher/ownershipvoucher.go#L20

from fido-device-onboard-rs.

runcom avatar runcom commented on August 15, 2024

@runcom https://github.com/Avielyo10/edge-api/blob/fdo-client/pkg/services/ownershipvoucher/ownershipvoucher.go#L20

oh so that was a bad link at the top :) - would be helpful if you provide the panic as well - @puiterwijk ?

https://github.com/Avielyo10/edge-api/blob/fdo-client/pkg/services/ownershipvoucher/ownershipvoucher.go#L21 (defer comes after you check for nil also)

from fido-device-onboard-rs.

Avielyo10 avatar Avielyo10 commented on August 15, 2024

Yes sorry, my bad lol

defer comes after you check for nil also

Because in case I'm returning because of a nil I want it to be invoked

from fido-device-onboard-rs.

Avielyo10 avatar Avielyo10 commented on August 15, 2024

panic will crush the server, unless I'll create recover() - a bit redundant for this specific case IMO

from fido-device-onboard-rs.

puiterwijk avatar puiterwijk commented on August 15, 2024

Right, we really should not be panicking. Is there any chance you could share the panic, as @runcom mentioned, as that is a critical bug to us.

from fido-device-onboard-rs.

puiterwijk avatar puiterwijk commented on August 15, 2024

Okay, reproduced it, and will make sure this gets fixed.

from fido-device-onboard-rs.

Avielyo10 avatar Avielyo10 commented on August 15, 2024

thanks @puiterwijk

from fido-device-onboard-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.