Hi All,

 I am using cas version 5.2.2 and deployed the same on JBOSS version 7.2.9
and jdk 1.8.0_281. The issue I am facing is with JSON parsing of client
applications. The url of the client application and what is registered in
my JSON file is correct only. Still I am getting application not authorised
to use cas.

Below is my json file

commonWebapp-1991.json

{
"@class": "org.apereo.cas.service.RegexRegisteredService",
"serviceId":"^https://abc/login";,
"name":"CommonWeb",
"description":"This is a Spring App that uses the CAS Server for it's
authentication",
"id":19991,
"theme":"theme_abc",
"evaluation0rder":1,
"properties":{
"@class":"java.util.HashMap",
"appId": {
"@class":"org.apereo.cas.services.DefaultRegisteredServiceProperty",
"values":["java.util.HashSet", ["ABC"]]
},
"rolePrefix": {
"@class":"org.apereo.cas.services.DefaultRegisteredServiceProperty",
"values":["java.util.HashSet",["APL-ABC"]]
}
},
"attributeReleasePolicy":{
"@class":"org.apereo.cas.services.ReturnAllowedAttributeReleasePolicy",
"allowedAttributes":["java.util.ArrayList", ["sn", "memberOf", "givenName"]]
},
"access Strategy":{
"@class":"org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy",
"enabled": true,
"ssoEnabled":true
}
}

Below is my log file:-








*2021-02-10 13:00:40,175 ERROR [org.apereo.cas.util.serialization.
AbstractJacksonBackedStringSerializer] - <Cannot read/parse JSON
[{"@class":"org.apereo.cas.services.RegexRegisteredService","serviceId":"^https://abc/login..
<https://abc/login..>.] to deserialize into type (interface
org.apereo.cas.services. RegisteredService). This may be caused in the
absence of a configuration/support module that knows how to interpret the
JSON fragment, specially if the fragment describes a CAS registered service
definition. Internal parsing error is (Illegal type
(org.apereo.cas.services.RegexRegisteredService) todeserialize: prevented
for security reasonsat
[Source(String)"("@class":"org.apereo.cas.services.RegexRegisteredService","serviceId"
: "^https://abc/login <https://abc/login>","name":"CommonWeb",
"description":"This is a Spring App that uses the CAS Server for it's
authentication", "id":19991, "theme": "theme abc",
"evaluationOrder":1,"properties":{"@class":"java.util.HashMap", "appId":
{"@class":"org.apereo.cas.services.DefaultRegisteredServiceProperty","values":["java.util.HashSet",["ABC"]]},"rolePrefix":
{"@class":"org.apereo.cas.services.De <http://org.apereo.cas.services.De>"
[truncated 399 chars); line: 1, column: 11]]>2021-02-10 13:00:40, 176 INFO
(org.apereo.cas.services AbstractServicesManager - <Loaded [0] service(s)
from (JsonServiceRegistryDao)->*

This is my log file. Please suggest. The URL of both the client side and
what we have configured on our end is the same.
Naming convention of my JSON is commonWebapp-1991.json

Thanks and regards,
Vikash Chandra

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2BdrvxjCHXqMA9TbwyGAgzqp6jgBSRWnoshRa3W7Ras_06zvQg%40mail.gmail.com.

Reply via email to