Aklakan opened a new issue, #1292:
URL: https://github.com/apache/jena/issues/1292

   A quick request to make the following single method public so that I can 
inject a bearer token - if possible for 4.5.0-SNAPSHOT (on the main branch I 
already get 4.6.0-SNAPSHOT.
   
   Because of the lack of interceptors in java HttpClient (I am 
underwhelmed...) this seems to be the only reliable way to make bearer token 
auth working with jena. De-facto, this AuthEnv is a way of interceptor 
framework after all...
   Of course adding a bearer token helper method to AuthLib would also be nice, 
but from my side this can happen in 4.6.0 if a can register my own auth mod for 
now.
   
   ```
   class AuthEnv() {
       void registerAuthModifier(String requestTarget, AuthRequestModifier 
authModifier) {
           // Without query string or fragment.
           String serviceEndpoint = HttpLib.endpoint(requestTarget);
           //AuthEnv.LOG.info("Setup authentication for "+serviceEndpoint);
           authModifiers.put(serviceEndpoint, authModifier);
       }
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to