You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cas-...@apereo.org
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...] 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) to deserialize: prevented for security reasons
at [Source
(String)"("@class":"org.apereo.cas.services.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", "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" [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
Vikash Chandra Ansh
unread,
Feb 11, 2021, 1:22:54 PM2/11/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cas-...@apereo.org
Hi all,
I got the issue. It's the jboss jars which is conflicting with cas Json jar.
So cas 5.2.2 or 5.2.9 is compatible till jboss eap 7.2.8 only.