Comments (6)
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.
+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.
@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.
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.
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.
As I commented on #73, I think propagating the JWT header is good.
from microprofile-rest-client.
Related Issues (20)
- MicroProfile Rest Client 3.0 Compatible Certification Request
- The 3.0 TCK Relies on old Jakarta/Java EE Servlet Specification HOT 2
- MicroProfile Rest Client 3.0 release on Maven Central? HOT 2
- MicroProfile Rest Client 2.0 Compatible Certification Request - Payara Community 5.2021.10 HOT 1
- Setting SSLContext for CDI injected clients HOT 3
- Clarification for behavior of Default ResponseExceptionMapper when method signature returns Result HOT 3
- Replace javax namespace usage with jakarta HOT 1
- Fault Tolerance support in builder created client HOT 4
- Clarification about closing the rest client HOT 2
- [question] Can I build a new implementation for microprofile-rest-client? HOT 3
- RestClientBuilderResolver does not work when the security manager is enabled
- Clarify What Exceptions Can Be Thrown When Closing A Client HOT 5
- ClientRequestFilter and ClientResponseFilter priority tests absent from MP Rest Client TCK HOT 1
- Align with Jakarta EE 10
- ConfigKeyForMultipleInterfacesTest uses the same WAR file name as ConfigKeyTest HOT 4
- Can we wrap all parameters including body parameter into a single object ? HOT 4
- No TCK coverage for exception mappers when subresource interface methods are called
- Clarify specification text for CDI support
- MicroProfile Rest Client 4.0 Compatible Certification Request
- Spec still references MP OpenTracing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microprofile-rest-client.