Skip to content

cmd oauth

github-actions[bot] edited this page Oct 8, 2026 · 6 revisions

nself oauth

Moved to nself config oauth in v1.5.0, removed in v1.6.0. The old spelling keeps working until then.

See cmd-config for the current command. Command-Canon lists every move.

Previous content

Manage OAuth provider tokens for ɳSelf plugins.

Description

nself oauth manages OAuth provider tokens. Use nself oauth refresh to trigger an immediate token refresh outside the scheduled cron window, for example after a provider outage or a B-21-style token expiry incident.


nself oauth refresh

Force an immediate OAuth token refresh outside the cron schedule.

Flags

Flag Default Description
--account-id <id> — Scope refresh to a single account
--all false Refresh all providers in parallel
--base-url <url> $NSELF_API_URL ɳSelf API base URL

Behavior

  • Posts to the provider plugin's /oauth/refresh-now endpoint
  • Runs providers in parallel when --all is used
  • Reports success/failure per account, not aggregated
  • Never exposes OAuth token values in output (only key prefixes)
  • Success is visible in OAuth refresh Prometheus metrics within 5s (requires S41-T03 exporter)
  • Exits non-zero if any account fails

Examples

# Refresh Google OAuth tokens
nself oauth refresh google

# Refresh a specific account
nself oauth refresh google --account-id user@example.com

# Refresh all configured providers (parallel)
nself oauth refresh --all

Exit Codes

Code Meaning
0 All accounts refreshed successfully
1 One or more accounts failed , see per-account output

See Also

Examples

# Refresh Google OAuth tokens now, outside the cron schedule
nself oauth refresh google

# Refresh just one account
nself oauth refresh google --account-id user@example.com

# Refresh every configured provider in parallel
nself oauth refresh --all

See Also

← Commands | Home →

Home


Getting Started


Commands


Features


Configuration


Plugins (87 + 10 monitoring)

Free (25)
Pro (62)
Planned (26)
  • plugin-audit
  • plugin-blog
  • plugin-checkout
  • plugin-commerce
  • plugin-drm
  • plugin-export
  • plugin-flow
  • plugin-import
  • plugin-ldap
  • plugin-mailgun
  • plugin-media
  • plugin-oauth-providers
  • plugin-pages
  • plugin-postmark
  • plugin-rate-limit
  • plugin-reports
  • plugin-saml
  • plugin-scheduler
  • plugin-sendgrid
  • plugin-sso
  • plugin-subscription
  • plugin-thumb
  • plugin-transcoder
  • plugin-twilio
  • plugin-waf
  • plugin-watermark

Guides


Architecture


Reference


Machine interface


Licensing


Security


Brand


Operations


Contributing


Admin


Changelog


All commands (21)

Clone this wiki locally