Coder Social home page Coder Social logo

Comments (3)

nicovanbelle avatar nicovanbelle commented on September 7, 2024 1

I really miss a feature like this. I understand that from your perspective the most simple solution is the best, but I find the current feature set quite lacking.

from java-jwt.

pose avatar pose commented on September 7, 2024

Thanks @amanteaux We think that adding that feature will allow unnecessary complexity to the library. We might consider doing it in the future if the need arises.

from java-jwt.

sarnobat avatar sarnobat commented on September 7, 2024

Just a note for anyone confused - you can't "cheat" by wrapping a POJO inside n layers of java.util.Map. The validation is recursive:

JWTCreator$Builder.validateClaim(Map<?,?>) line: 492	
JWTCreator$Builder.isSupportedType(Object) line: 516	
JWTCreator$Builder.validateClaim(Map<?,?>) line: 491	
JWTCreator$Builder.validatePayload(Map<String,?>) line: 478	
JWTCreator$Builder.withPayload(Map<String,?>) line: 457	
JWTSigner.sign(Map<String,Object>, Options) line: 63	

Maybe this is obvious to others but I wasn't sure from the wording so tried it out (with v4.3.0)

from java-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.