{
  "$ref": "#/definitions/Component",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "Component": {
      "additionalProperties": false,
      "properties": {
        "auth_cookie_name": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "provider": {
          "additionalProperties": false,
          "properties": {
            "name": {
              "$ref": "#/definitions/IProvider"
            },
            "params": {
              "additionalProperties": false,
              "properties": {
                "auth_server_url": {
                  "type": "string"
                },
                "client_id": {
                  "type": "string"
                },
                "redirect_url": {
                  "type": "string"
                },
                "scope": {
                  "type": "string"
                }
              },
              "required": [
                "redirect_url",
                "client_id",
                "scope"
              ],
              "type": "object"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object"
        },
        "redirectonlogin": {
          "type": "string"
        },
        "social_auth_server_url": {
          "type": "string"
        },
        "style": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "IProvider": {
      "enum": [
        "facebook",
        "google",
        "gitlab",
        "github",
        "authentik"
      ],
      "type": "string"
    }
  }
}
