Skip to main content
photon account oauth covers the OAuth side of your account:
  • Connections are applications you have authorized to act on your behalf.
  • Scopes are the delegated permissions Photon offers.
OAuth clients — applications you build — belong to an organization and are managed with photon org oauth-client.

Scopes

This lists the delegated scopes Photon offers. With --json it prints the API’s response as Photon sends it: {"scopes": [...]}.

Connections

Connections are applications you authorized, not clients you own. Revoking one removes your grant without deleting the underlying OAuth client.
connection list shows 30 connections unless --limit says otherwise, at most 100. With --json it prints the API’s response as Photon sends it: {"authorizedApplications": [...], "listMetadata": {"after": ..., "before": ...}}, each connection with its application, grantedScopes and oauthResource. Pass listMetadata.after to --page-token for the next page, or listMetadata.before to --before for the page before. Each is null when there is no such page. Revocation prompts interactively and needs --yes in scripts. The application must be authorized again before it can get another token for you. Photon answers a revocation with no body, so with --json connection revoke prints a document the CLI defines, naming what it revoked: {"applicationId": "connect_app_123", "revoked": true}.