Salesforce · JSON Structure

Salesforce O Auth2 Structure

Type: object Properties: 3 Required: 3
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

OAuth2 is a JSON Structure definition published by Salesforce, describing 3 properties, of which 3 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

type description flows

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "OAuth2",
  "properties": {
    "type": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "flows": {
      "type": "object",
      "properties": {
        "implicit": {
          "type": "object",
          "properties": {
            "authorizationUrl": {
              "type": "string"
            },
            "scopes": {
              "type": "object",
              "properties": {
                "visualforce": {
                  "type": "string"
                },
                "address": {
                  "type": "string"
                },
                "custom_permissions": {
                  "type": "string"
                },
                "openid": {
                  "type": "string"
                },
                "profile": {
                  "type": "string"
                },
                "refresh_token": {
                  "type": "string"
                },
                "wave_api": {
                  "type": "string"
                },
                "web": {
                  "type": "string"
                },
                "phone": {
                  "type": "string"
                },
                "offline_access": {
                  "type": "string"
                },
                "chatter_api": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "api": {
                  "type": "string"
                },
                "eclair_api": {
                  "type": "string"
                },
                "email": {
                  "type": "string"
                },
                "pardot_api": {
                  "type": "string"
                },
                "full": {
                  "type": "string"
                }
              },
              "required": [
                "visualforce",
                "address",
                "custom_permissions",
                "openid",
                "profile",
                "refresh_token",
                "wave_api",
                "web",
                "phone",
                "offline_access",
                "chatter_api",
                "id",
                "api",
                "eclair_api",
                "email",
                "pardot_api",
                "full"
              ]
            }
          },
          "required": [
            "authorizationUrl",
            "scopes"
          ]
        },
        "password": {
          "type": "object",
          "properties": {
            "tokenUrl": {
              "type": "string"
            },
            "scopes": {
              "type": "object",
              "properties": {
                "api": {
                  "type": "string"
                }
              },
              "required": [
                "api"
              ]
            }
          },
          "required": [
            "tokenUrl",
            "scopes"
          ]
        },
        "authorizationCode": {
          "type": "object",
          "properties": {
            "authorizationUrl": {
              "type": "string"
            },
            "tokenUrl": {
              "type": "string"
            },
            "scopes": {
              "type": "object",
              "properties": {
                "visualforce": {
                  "type": "string"
                },
                "address": {
                  "type": "string"
                },
                "custom_permissions": {
                  "type": "string"
                },
                "openid": {
                  "type": "string"
                },
                "profile": {
                  "type": "string"
                },
                "refresh_token": {
                  "type": "string"
                },
                "wave_api": {
                  "type": "string"
                },
                "web": {
                  "type": "string"
                },
                "phone": {
                  "type": "string"
                },
                "offline_access": {
                  "type": "string"
                },
                "chatter_api": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "api": {
                  "type": "string"
                },
                "eclair_api": {
                  "type": "string"
                },
                "email": {
                  "type": "string"
                },
                "pardot_api": {
                  "type": "string"
                },
                "full": {
                  "type": "string"
                }
              },
              "required": [
                "visualforce",
                "address",
                "custom_permissions",
                "openid",
                "profile",
                "refresh_token",
                "wave_api",
                "web",
                "phone",
                "offline_access",
                "chatter_api",
                "id",
                "api",
                "eclair_api",
                "email",
                "pardot_api",
                "full"
              ]
            }
          },
          "required": [
            "authorizationUrl",
            "tokenUrl",
            "scopes"
          ]
        }
      },
      "required": [
        "implicit",
        "password",
        "authorizationCode"
      ]
    }
  },
  "required": [
    "type",
    "description",
    "flows"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}