Skip to content

Conversation

@kalvinnchau
Copy link
Contributor

feat(google_drive): use oauth2 crate for PKCE support, make token storage generic over Serializable

feat: use exchange_refresh_token method instead of manual impl
use interior mutability using Arc<Mutex<>> for refresh_token
ensure credentials persist between requests and preventing
repeated authentication prompts after successful authorization
style: refactor for readability and comments
rename token_storage to storage since it is generic enough
…ken>

simplify logic and remove in memory refresh token, add expiration check
to reuse any valid tokens
* main:
  feat(google_drive): move credentials into keychain, add optional fallback (#1603)
  feat: add session list command in cli (#1586)
… to mod.rs

this allows easy re-use of storage.rs, and keeps all google_drive
specific variables in the mod.rs file
test: add basic storage tests
@kalvinnchau kalvinnchau force-pushed the kalvin/google-drive-pkce branch from 0bd34a0 to 30ab2a5 Compare March 12, 2025 17:45

/// CredentialsManager handles secure storage of OAuth credentials.
/// It attempts to store credentials in the system keychain first,
/// with fallback to file system storage if keychain access fails and fallback is enabled.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@kalvinnchau kalvinnchau force-pushed the kalvin/google-drive-pkce branch 2 times, most recently from fa6649b to 30ab2a5 Compare March 14, 2025 23:38
* origin/main: (29 commits)
  ui: reorganize extensions settings (#1702)
  feat: google_drive write tools and read comment tool (#1650)
  fix: developer builtin name (#1699)
  chore: update extensions section to work with new endpoints (#1696)
  chore: move things around (#1662)
  ui: extensions state updates (#1674)
  docs: goose ollama blog, updated (#1691)
  ui: load builtins (#1679)
  chore(release): release version 1.0.14 (#1676)
  Revert "feat: handling larger more complex PDF docs (and fix) (#1663)" (#1675)
  fix: uvshim default to existing uv configuration (#1670)
  fix: handle interruptions during tool responses (#1651)
  feat: Copy error message button in toast (#1658)
  feat: handling larger more complex PDF docs (and fix) (#1663)
  Add Filesystem Tutorial (#1666)
  docs: figma blog post (#1647)
  docs: updating goose modes doc (#1665)
  docs: Add running tasks guide (#1626)
  docs: Add experimental features (#1644)
  feat(cli): add better error message, support stdin via -i - or just no args (#1660)
  ...
@kalvinnchau kalvinnchau merged commit 7f445b1 into main Mar 15, 2025
6 checks passed
@kalvinnchau kalvinnchau deleted the kalvin/google-drive-pkce branch March 15, 2025 00:38
laanak08 added a commit that referenced this pull request Mar 16, 2025
* main: (31 commits)
  feat: add default metrics for core evals (#1602)
  feat(google_drive): use oauth2 crate for PKCE support, make token storage generic over Serializable (#1645)
  ui: reorganize extensions settings (#1702)
  feat: google_drive write tools and read comment tool (#1650)
  fix: developer builtin name (#1699)
  chore: update extensions section to work with new endpoints (#1696)
  chore: move things around (#1662)
  ui: extensions state updates (#1674)
  docs: goose ollama blog, updated (#1691)
  ui: load builtins (#1679)
  chore(release): release version 1.0.14 (#1676)
  Revert "feat: handling larger more complex PDF docs (and fix) (#1663)" (#1675)
  fix: uvshim default to existing uv configuration (#1670)
  fix: handle interruptions during tool responses (#1651)
  feat: Copy error message button in toast (#1658)
  feat: handling larger more complex PDF docs (and fix) (#1663)
  Add Filesystem Tutorial (#1666)
  docs: figma blog post (#1647)
  docs: updating goose modes doc (#1665)
  docs: Add running tasks guide (#1626)
  ...
ahau-square pushed a commit that referenced this pull request May 2, 2025
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
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.

4 participants