Repository navigation
Feat/unified google oauth and connectors - #22
Merged
Merged
Conversation
…kspace support, and purge sunset developer token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a unified Google OAuth 2.0 authentication and token management system, simplifying credential handling for Google Ads, GA4, GTM, and YouTube integrations. It removes all references to the deprecated Google Ads developer token, adds an interactive CLI wizard for credential renewal, and implements hierarchical credential resolution. The changes also update documentation, environment variables, and add automated token management with proactive refresh and caching.
Unified Google OAuth and Token Management:
GoogleTokenManagerfor automatic access token caching, proactive refresh before expiry, and invalidation on HTTP 401 responses, supporting all Google connectors. (src/agency_analytics/google_auth.py)src/agency_analytics/google_auth.py,src/agency_analytics/client_config.py) [1] [2] [3]CLI and Developer Experience Improvements:
multitenant-elt auth googleCLI command andmake auth-googleMakefile target for an interactive Google OAuth credential renewal wizard, supporting both global and per-client credentials. (src/agency_analytics/cli.py,Makefile) [1] [2] [3] [4].env.exampleand documentation to reflect the new Google OAuth environment variables and credential flow, and removed all references to the deprecatedGOOGLE_ADS_DEVELOPER_TOKEN. (.env.example,README.md) [1] [2] [3] [4]Dependency and Compatibility Updates:
google-authas a required dependency inpyproject.tomlto support the new OAuth flow and token management.These changes modernize Google integration authentication, reduce manual credential management, and ensure future compatibility as Google sunsets developer tokens.