Azure client secrets lapse silently into opaque 401s (AADSTS7000222). Add a self-reported expiry date (SP_SECRET_EXPIRES=YYYY-MM-DD) and a shared secretExpiryStatus() helper in graph.mjs; surface warnings <30 days out via the CLI (stderr on every command + test output), MCP server startup log, /health, and the sharepoint_test tool. Documented in both .env.examples, setup.md, and READMEs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
17 lines
722 B
Plaintext
17 lines
722 B
Plaintext
# Copy this file to ".env" (same directory) and fill in real values.
|
|
# The CLI loads .env automatically. NEVER commit the real .env (it is git-ignored).
|
|
#
|
|
# From the Azure AD (Entra) app registration — see references/setup.md.
|
|
|
|
SP_TENANT_ID=00000000-0000-0000-0000-000000000000
|
|
SP_CLIENT_ID=00000000-0000-0000-0000-000000000000
|
|
SP_CLIENT_SECRET=your-client-secret-value-here
|
|
|
|
# When the client secret expires (shown in Entra > Certificates & secrets).
|
|
# Optional but recommended: the CLI warns on stderr when <30 days remain,
|
|
# instead of a surprise 401 later.
|
|
# SP_SECRET_EXPIRES=2027-01-01
|
|
|
|
# Optional: default site so you can omit --site on every command.
|
|
# SP_SITE_URL=https://contoso.sharepoint.com/sites/Marketing
|