Coder Social home page Coder Social logo

Comments (6)

andymc12 avatar andymc12 commented on August 17, 2024 2

With Rest Client 1.2, it is now possible to create and propagate headers that are not part of the client method signature. It is also possible for CDI interceptors to be placed on rest client methods. This should enable the functionality to create/propagate JWT tokens, but perhaps there is still some more that can be done to simplify this for developers.

from microprofile-rest-client.

yeekangc avatar yeekangc commented on August 17, 2024 1

+1 to further simplify so at least for (MP) JWT tokens, they will be handled automatically. The enhancements in 1.2 are useful in any case. Thanks!

from microprofile-rest-client.

johnament avatar johnament commented on August 17, 2024

@rdebusscher could you expound on this a bit further? Is it propagating the existing JWT or creation of a new JWT?

from microprofile-rest-client.

rdebusscher avatar rdebusscher commented on August 17, 2024

I think the use case of a new JWT is more important.

Maybe it is possible to create a new JWT based on the 'securityContext' information we have at that moment. But I guess the JWT Auth spec should define then first how those info can be retrieved from the 'SecurityContext'

The Rest Client should be used to call other MP endpoints, or am I mistaken the goal of this spec?
When those other MP endpoints are protected with the JWT auth, they need the JWT in the header.
And instead of that everyone invents this over and over again, it can be added to the Rest client.

from microprofile-rest-client.

rdebusscher avatar rdebusscher commented on August 17, 2024

Within a few weeks, I have more time if you think I can help with this feature.
I have done the same for the Octopus framework I maintain.

from microprofile-rest-client.

Emily-Jiang avatar Emily-Jiang commented on August 17, 2024

As I commented on #73, I think propagating the JWT header is good.

from microprofile-rest-client.

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.