Skip to main content

Config for sunbird-rc

Jobs that use the sunbird-rc adaptor may require authentication. A "credential" for the sunbird-rc adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration​

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"baseUrl": "https://credentials.country.gov"
}

Full Schema​

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"baseUrl": {
"title": "Base URL",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The base URL (https://credentials.country.gov)",
"format": "uri",
"minLength": 1,
"examples": [
"https://credentials.country.gov",
"http://98.70.25.20/credential"
]
},
"token": {
"title": "Token",
"type": "string",
"description": "An API key for your instance",
"writeOnly": true,
"examples": [
"@some(!)Str0ngT0k3n"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"baseUrl"
]
}