Where to put the JSON Service Registry?

53 views
Skip to first unread message

invain

unread,
Jul 17, 2019, 6:01:28 AM7/17/19
to CAS Community

So the page told me a JSON Service is like:


1
2
3
4
5
6
7
{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "testId",
  "name" : "testJsonFile",
  "id" : 103935657744185,
  "evaluationOrder" : 10
}
And then what? Where do I put this (JSON fileName = serviceName + "-" + serviceNumericId + ".json") file? Where is this "configured directory location" ? Where do I configure it, what is the name and value format of this config item?
I'm running CAS using cas-overlay-template on a CentOS7 machine.
Currently I'm aware of two path of interest: "/etc/cas", "......./cas-overlay-template"

I've been trying to add a OpenId Connect client and LDAP to set up a SSO app for days.
The docs are well written, but they are overwhelming for a newbee digging into CAS.

Andy Ng

unread,
Jul 17, 2019, 8:32:14 AM7/17/19
to CAS Community
Hi there,

By default, it is configured as your classpath:/services
cas.serviceRegistry.json.location=classpath:/services, 

You can see this default by visiting your linked documentation here https://apereo.github.io/cas/6.0.x/services/JSON-Service-Management.html, you can see there is a hyperlink here: To see the relevant list of CAS properties, please review this guide.

As for where is the class path, it should be `....../cas-overlay-template/cas/src/main/resoruces/services`, you can refernce this question here: https://groups.google.com/a/apereo.org/forum/#!searchin/cas-user/src$2Fmain$2Fresources$20Andy$20%7Csort:date/cas-user/wkaESyEDyZo/5_vew52XBAAJ

Essentially, something like this:

..../cas-overlay-template
├── cas
│   └── src
│       └── main
│           └── resources
│               ├── hbmsu.properties

│               ├── services
│               │   └── testJSONFILE-123.json
│               ├── static
│               │   └── themes
│               │       └── hbmsu
│               │                 └── cas.css
│               └── templates

See if this helps.

Cheers!
- Andy

invain

unread,
Jul 17, 2019, 8:49:24 AM7/17/19
to CAS Community
Thank you so much!

在 2019年7月17日星期三 UTC+8下午8:32:14,Andy Ng写道:

invain

unread,
Jul 17, 2019, 8:51:29 AM7/17/19
to CAS Community
Later in the day I found this blog post very helpful: https://apereo.github.io/2018/11/16/cas60-gettingstarted-overlay/
Thanks. Great work!
Cheers.

在 2019年7月17日星期三 UTC+8下午6:01:28,invain写道:

Andy Ng

unread,
Jul 17, 2019, 9:18:04 AM7/17/19
to CAS Community
Oh nice, didn't know there is a detail tutorial made already, great! -Andy
Reply all
Reply to author
Forward
0 new messages