Hi everyone, I've opened a jira regarding the addition of Bearer authentication support to Avatica [https://issues.apache.org/jira/browse/CALCITE-6135]. This feature would enable authentication with bearer tokens as defined in RFC 6750 [https://datatracker.ietf.org/doc/html/rfc6750].
I've also opened a PR with a proposed implementation [ https://github.com/apache/calcite-avatica/pull/232]. Worth noting that there is an upcoming support for this auth scheme in HttpClient as well [ https://github.com/apache/httpcomponents-client/commit/95e8abbda8d6af34c62c131ce0fad867d8ed0fcb]. Taking this into consideration, the relevant classes are adjusted so a future version upgrade should not be too difficult. Additionally, this implementation provides greater flexibility with a file based token provider allowing token refresh, however, a constant token provider class is also implemented based on Istvan's suggestion. I welcome any feedback or suggestions you may have. Regards, Áron
