We had a bug report that oauth authorization headers weren't being passed if Forward OAuth Identity was selected. Resource requests were passing them fine, but query requests failed. It seems like not passing the context made it so that the appropriate headers weren't being applied in plugin-sdk.
User provided us with a docker-compose file where it was clear the the Authorization header was empty:
What this PR does / why we need it:
We had a bug report that oauth authorization headers weren't being passed if
Forward OAuth Identity
was selected. Resource requests were passing them fine, but query requests failed. It seems like not passing the context made it so that the appropriate headers weren't being applied in plugin-sdk. User provided us with a docker-compose file where it was clear the the Authorization header was empty:After this fix:
Which issue(s) this PR fixes:
Fixes https://github.com/grafana/opensearch-datasource/issues/487
Special notes for your reviewer: