GithubHelp home page GithubHelp logo

Comments (2)

kenips avatar kenips commented on August 22, 2024 1

Thanks for explaining that. It's definitely a configuration error on our side which 1.8.0 helped exposing :).

from erlang-jose.

potatosalad avatar potatosalad commented on August 22, 2024

Hey @kenips,

TL;DR HS512 should have never worked with an EC key of the P-521 curve. Due to the way it was previously written, a HS512 signature would actually cause ES512 to be used (which is valid for that key type).

Version 1.8.0 is more strict in regards to which algorithms may be used with specific key types. In previous versions, :sha512 would get passed to the EC key type, so it was actually "working silently" on past versions. However, HMAC-SHA-512 and SHA-512 are two very different algorithms, hence the "more strict" failure that is happening for you.

That said, I need to dig into guardian a little more and see why exactly HS512 is being passed in for an EC key. Would you mind sharing the configuration you are specifying for guardian (minus your secret key or just minus the "d" portion of the key)?

from erlang-jose.

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.