Here is the JSONSchema for the OAuth object.
{
"$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
Property | Type | Required? | Description |
Provider
| string | Yes | The Idenity Provider. |
CilentID | string | No | The ID of the cilent.. |
Client Secret | string | No | Appliction Client Secret. |
AutoCreateUser | boolian | No |
|
Scopes
| array | No |
|
ScopesURL | object | No |
|
additional Propeties | object | No |
|