Skip to content

Conversation

@mdehoog
Copy link

@mdehoog mdehoog commented Dec 24, 2021

When Goblet is used across different repos or different organizations, it's useful to support custom token generation mechanisms for different upstreams. For example, a Github app's installation tokens need to be generated separately for each organization.

This PR modifies the TokenSource configuration option to a function that accepts the upstream URL as a parameter.

jrepp added a commit to jrepp/goblet that referenced this pull request Nov 7, 2025
Merges google/goblet PR #11 by @mdehoog
google#11

Allows custom token generation mechanisms for different upstreams.
This is useful when Goblet caches repos from different organizations
where each needs its own token (e.g., GitHub app installation tokens).

Changes:
- Modified TokenSource from oauth2.TokenSource to a function accepting upstream URL
- Updated all token generation calls to pass upstream URL parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant