exchange-graph: app-only sign-in with --app-only #44

Merged
jcoffey-dev merged 1 commits from feat/graph-app-only into main 2026-10-30 21:32:21 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 74e8445529 exchange-graph: app-only sign-in with --app-only
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 3m31s
ci / announce (pull_request) Skipped
The app signs in as itself with its client secret (client credentials,
scope .default) and reads the mailbox --user names, so a whole tenant
moves in a plan with no one signing in. --app-only needs --user and a
real tenant, and reads $INBUXA_MIGRATE_CLIENT_SECRET or prompts. The
token has no refresh token; the refresher signs in again before it runs
out. Token requests share one retrying helper with refresh.

A plan's clientSecret now also sets INBUXA_MIGRATE_CLIENT_SECRET, so it
reaches Graph as well as EWS.
2026-10-30 14:28:33 -07:00