Coder Social home page Coder Social logo

need to set 'x5t' in header about jwt HOT 3 CLOSED

lcobucci avatar lcobucci commented on August 15, 2024
need to set 'x5t' in header

from jwt.

Comments (3)

lcobucci avatar lcobucci commented on August 15, 2024

Hey @fipp!

I was planning to add that kind of header in the next major release (along with JWK support #32) but I think that it's quite simple to implement that in v3.x.

The simplest solution that comes to me now is adding a method in Builder to configure token headers (something like setHeader(string $name, mixed $value):Builder and just changes the headers only if it's not signed).

Using JWK would be much easier since things would be validated on the key creation, but thats what we're able to do now.

Would you like to send a PR with something close to that (using the branch 3.1)?

from jwt.

lcobucci avatar lcobucci commented on August 15, 2024

Hey @fipp go and install v3.1.0 and you'll able to change the token using the setHeader() method on Builder.

from jwt.

fipp avatar fipp commented on August 15, 2024

Thank you very much, great work! Sorry that I couldn't get around to submitting a PR...

from jwt.

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.