ynpreet commented on issue #57867: URL: https://github.com/apache/airflow/issues/57867#issuecomment-6298974427
Hi, I'd like to pick this up — I see the previous assignee was unassigned under the assignment policy, so I'm commenting here as suggested before opening a PR. Approach, following the existing AAD token pattern in `BaseDatabricksHook`: - New opt-in auth branch in `_get_token()` / `_a_get_token()` behind a `use_google_id_token` connection-extra flag, with the ID-token audience and an optional impersonated service account configured via connection extras. - At runtime, obtain the Google ID token with google-auth: `google.auth.default()` + `AuthorizedSession` against the IAM Credentials `generateIdToken` endpoint when impersonating service account B, or `id_token.fetch_id_token` for the default credentials otherwise; cache the JWT and refresh it shortly before expiry. - Unit tests mirroring the AAD token tests, with all google-auth calls mocked (no real GCP calls). I'll open a PR once it's ready for review. -- 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]
