{
  "issuer": "https://objectsgrid.com",
  "token_endpoint": "https://apis.objectsgrid.com/oauth2/token",
  "revocation_endpoint": "https://apis.objectsgrid.com/oauth2/token/revoke",
  "grant_types_supported": [
    "urn:ietf:params:oauth:grant-type:token-exchange",
    "client_credentials",
    "refresh_token",
    "urn:objectsgrid:params:oauth:grant-type:anonymous"
  ],
  "token_endpoint_auth_methods_supported": [
    "client_secret_basic",
    "client_secret_post",
    "none"
  ],
  "revocation_endpoint_auth_methods_supported": [
    "none"
  ],
  "response_types_supported": [],
  "service_documentation": "https://objectsgrid.com/docs/guides/authentication/",
  "objectsgrid": {
    "access_point_header": "X-ObjectsGrid-AccessPoint: EU or US, the Organization Account's, on every token request; without it the request goes to EU, and a US account's is refused with invalid_request",
    "grants": {
      "urn:ietf:params:oauth:grant-type:token-exchange": {
        "issued_to": "user accounts",
        "subject_token_type": "urn:ietf:params:oauth:token-type:id_token",
        "subject_token_issuers": ["https://accounts.google.com", "https://appleid.apple.com"],
        "organization_account_issuers": "Also up to 3 OpenID Connect issuers of the organization account's own, listed in its identityProviders, such as its Okta org",
        "client_id_semantics": "organization_account_id",
        "token_endpoint_auth_method": "none"
      },
      "client_credentials": {
        "issued_to": "secret service accounts",
        "client_id_semantics": "service_account_id",
        "token_endpoint_auth_methods": ["client_secret_basic", "client_secret_post"]
      },
      "refresh_token": {
        "issued_to": "user accounts",
        "single_use": true,
        "lifetime": "The organization account's refreshTokenLifetimeHours since the person signed in; when unset, 100 days after the refresh token was issued"
      },
      "urn:objectsgrid:params:oauth:grant-type:anonymous": {
        "issued_to": "public service accounts, which have no secret",
        "client_id_semantics": "service_account_id",
        "token_endpoint_auth_method": "none",
        "note": "A web page usually sends the public service account's API key instead (POST /serviceaccounts/{id}/apikey), without a token request"
      }
    },
    "revocation": "Refresh tokens only; the caller sends an access token of the refresh token's organization account as 'Authorization: Bearer <token>'",
    "access_tokens": "Opaque to clients: sent as 'Authorization: Bearer <token>', verified by ObjectsGrid only",
    "contract": "https://objectsgrid.com/.well-known/openapi/Tokens/v1/openapi.yaml"
  }
}
