Skip to content
NewDatafor 10.02 is out: subscriptions and metric alerts, in Slack and Teams
Datafor

Extension Plugins / CAS

Query CAS config

Read the CAS single sign-on settings.

Returns the CAS single sign-on settings shown under CAS settings in the console.

Method and path POST /plugin/datafor-cas/api/query
Permission Administrator user type; the CAS plugin must be installed
Content type application/json

Example

curl -u admin:password -X POST \
  "http://localhost:28080/datafor/plugin/datafor-cas/api/query" \
  -H "Content-Type: application/json" -d '{}'
{
  "success": true,
  "code": "200",
  "data": {
    "enable": "1",
    "type": "jasig",
    "center_url": "https://cas.example.com/cas",
    "login_url": "https://cas.example.com/cas/login",
    "logout_url": "https://cas.example.com/cas/logout",
    "inituser": "1",
    "initroles": ["SYS_Reader"],
    "ignoreList": ["/plugin/datafor-modeler/api", "/Login"],
    "includeList": []
  }
}

The fields are described on Save CAS config. GET /plugin/datafor-cas/api/type/list returns the supported CAS server types.

Related: CAS Authentication