feat(connect): ship registered M365 + Google OAuth apps (#141)#145
Merged
Conversation
Bundle first-party client IDs so `aware connect microsoft-365 --device-code` and `aware connect google-workspace --oauth` work with zero user setup. - M365: multi-tenant public client — PKCE + device-code, no secret. - Google: desktop client. The client secret is never committed; it is injected at build time via option_env!(AWARE_GOOGLE_CLIENT_SECRET) (see cli/build.rs) or supplied at runtime via AWARE_OAUTH_GOOGLE_CLIENT_SECRET. client_secret is threaded through the PKCE, refresh, and device-code token exchanges. - Default scopes widened to match the curated command surface for both agents. - release.yml bakes the Google secret into release binaries from CI secrets. - 10-core/oauth-registration.md documents registration + admin consent + the Google restricted-scope / M365 publisher-verification gates.
This was referenced May 23, 2026
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.
Summary
Ships first-party OAuth client IDs so
aware connect microsoft-365 --device-codeandaware connect google-workspace --oauthwork with zero user setup — closes #141.00929383-…). PKCE + device-code, no secret. 10 delegated Graph scopes covering the curated command surface (files/Excel, SharePoint lists, mail, calendar, Teams, Planner).option_env!("AWARE_GOOGLE_CLIENT_SECRET")(CI secret) or supplied at runtime viaAWARE_OAUTH_GOOGLE_CLIENT_SECRET. Scopes cover Drive/Sheets/Calendar/Gmail/Slides/Forms/Tasks.client_secretthreaded through the PKCE, refresh, and device-code token exchanges — appended only when present, so the M365 public-client flow is unaffected.cli/build.rsaddsrerun-if-env-changedso releases re-bake the secret.release.ymlinjects the secret into thecargo build --releasestep from a GitHub Actions secret.10-core/oauth-registration.mddocuments registration, admin consent, and the Google restricted-scope / M365 publisher-verification gates.Security
Test plan
cargo buildcleanaware connect microsoft-365 --device-codeend-to-end (own tenant)aware connect google-workspace --oauthend-to-end (test user)Follow-ups (not blocking)