JSON registered services infos not appearing in the login page!!

56 views
Skip to first unread message

noumann.f

unread,
Jan 10, 2018, 9:22:12 AM1/10/18
to CAS Community
Hi,

I'm running cas v5.1.x and I'd registered a test JSON service in the file `/etc/cas/config/services/HTTPSandIMAPS-10001.json` and setup the entry in the `cas.properties` file like this:
...
cas
.serviceRegistry.config.location=file:/etc/cas/config/services
...



Here is the file content:
{
 
/*
    Generic service definition that applies to https/imaps urls
    that wish to register with CAS for authentication.
  */

 
"@class" : "org.apereo.cas.services.RegexRegisteredService",
 
"serviceId" : "^(https|imaps)://.*",
 
"name" : "HTTPSandIMAPS",
 
"description" : "This ia a test registered service for everything.",
 
"logo" : "https://d1e4pidl3fu268.cloudfront.net/66963e4a-ccba-4fdd-ba18-d5862fb4dba7/test.png",
 
"id" : 10001,
}

And the log showed it's been loaded like in here:

...

2018-01-10 16:09:49,858 DEBUG [org.apereo.cas.services.DefaultServicesManager] - <Loading services from [JsonServiceRegistryDao]>
2018-01-10 16:09:49,860 DEBUG [org.apereo.cas.services.DefaultServicesManager] - <Adding registered service [^(https|imaps)://.*]>
2018-01-10 16:09:49,860 INFO [org.apereo.cas.services.DefaultServicesManager] - <Loaded [1] service(s) from [JsonServiceRegistryDao].>

...


What should I do to get the service details (meta data and logo) being displayed in the login page !??

Regards,




Andy Ng

unread,
Jan 10, 2018, 9:56:04 PM1/10/18
to CAS Community
Are you directly accessing your site like this:
https://www.example.com/cas

Instead of giving it a service param
https://www.example.com/cas?service=https://www.yourpage.com


If you want your website "https://www.example.com/cas" to have your logo, and not giving a service paramter

you might check out this: https://apereo.github.io/cas/5.2.x/installation/Configuration-Properties.html#themes

- Andy

noumann.f

unread,
Jan 11, 2018, 3:03:17 AM1/11/18
to CAS Community
Got it, thanks a lot.

Best regards,
Reply all
Reply to author
Forward
0 new messages