/
RESTOAuthobject

RESTOAuthobject

Here is the JSONSchema for the OAuth object.

JSON Format
{
  "$async": true,
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id": "http://broker.servicepower.com/schemas/sub_schemas/OAuth.json",
  "properties": {
    "Provider": {
      "description": "Identity Provider",
      "type": "string",
      "default": "Cognito",
      "enum": [
        "Cognito"
      ]
    },
    "ClientId": {
      "description": "Application Client Id",
      "type": "string",
      "default": ""
    },
    "ClientSecret": {
      "description": "Application Client Secret",
      "type": "string",
      "default": ""
    },
    "AutoCreateUser": {
      "description": "",
      "type": "boolean",
      "default": false
    },
    "Scopes": {
      "description": "OAuth 2.0 scopes",
      "type": "array",
      "items": {
        "type": "string"
      },
      "default": []
    },
    "ScopeURLs": {
      "description": "Resource URLs associated with an OAuth 2.0 scopes",
      "type": "object",
      "properties": {},
      "default": {}
    }
  },
  "additionalProperties": false,
  "type": "object"
}

Rest OAuth Object Properties


PropertyTypeRequired?Description
Provider

stringYesThe Idenity Provider.
CilentIDstringNo

The ID of the cilent..

Client SecretstringNo

Appliction Client Secret.

AutoCreateUserboolianNo


Scopes
arrayNo
ScopesURLobjectNo
additional PropetiesobjectNo