In Java 17, the authenticator is invoked with SERVER requestor even when the initial request is performed and even tho we provide the preemptive authorization via header.
Since our authenticator implementaiton did not provide credentials for SERVER requestor, only for PROXY, the message sending would crash with java.io.IOException: No credentials provided error.
Fixes #40
Testing done
### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [x] Link to relevant issues in GitHub or Jira
- [x] Link to relevant pull requests, esp. upstream and downstream changes
- [x] Ensure you have provided tests - that demonstrates feature works or fixes the issue
In Java 17, the authenticator is invoked with
SERVER
requestor even when the initial request is performed and even tho we provide the preemptive authorization via header.Since our authenticator implementaiton did not provide credentials for
SERVER
requestor, only forPROXY
, the message sending would crash withjava.io.IOException: No credentials provided
error.Fixes #40
Testing done