lxy714433989 opened a new issue, #4277: URL: https://github.com/apache/arrow-adbc/issues/4277
### What feature or improvement would you like to see? ## Background The Java Flight SQL driver currently supports basic authentication and custom authorization headers. ## Problem OAuth2 is commonly used for authentication in many deployments (e.g., via providers such as Keycloak or cloud IAM systems). However, the Java Flight SQL driver does not currently provide a standardized mechanism to configure OAuth2-based authentication (e.g., client credentials flow). ## Proposal Introduce initial support for OAuth2 authentication in the Java Flight SQL driver: - Add connection options for configuring OAuth2 parameters (e.g., token endpoint, client credentials, grant type) - Introduce a token provider abstraction responsible for acquiring and refreshing access tokens - Automatically attach the `Authorization: Bearer <token>` header to Flight requests ## Scope This proposal focuses on the Java Flight SQL driver as an initial implementation. It does not introduce changes to other ADBC drivers at this stage. ## Open Questions - Should OAuth2 support be standardized across ADBC drivers? - If so, should a common abstraction be introduced at the ADBC layer? -- 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]
