Hi,

We updated CAS from 5.3.14 to 6.1.1 and the REST authn doesn't work 
anymore. Nothing changed on the rest service side (the same JSON is 
returned to CAS).

*We get this error :*

2019-10-31 11:27:34,293 ERROR 
[org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <[
service_name]: [Error while extracting response for type [class 
org.apereo.cas.authentication.principal.SimplePrincipal] and content type 
[application/json;charset=UTF-8]; nested exception is 
org.springframework.http.converter.HttpMessageNotReadableException: JSON 
parse error: Cannot deserialize instance of 
`java.util.ArrayList<java.lang.Object>` out of VALUE_STRING token; nested 
exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: 
Cannot deserialize instance of `java.util.ArrayList<java.lang.Object>` out 
of VALUE_STRING token
 at [Source: (PushbackInputStream); line: 1, column: 104] (through 
reference chain: 
org.apereo.cas.authentication.principal.SimplePrincipal["attributes"]->java.util.LinkedHashMap["mail"])
 
/ JSON parse error: Cannot deserialize instance of 
`java.util.ArrayList<java.lang.Object>` out of VALUE_STRING token; nested 
exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: 
Cannot deserialize instance of `java.util.ArrayList<java.lang.Object>` out 
of VALUE_STRING token
 at [Source: (PushbackInputStream); line: 1, column: 104] (through 
reference chain: 
org.apereo.cas.authentication.principal.SimplePrincipal["attributes"]->java.util.LinkedHashMap["mail"])]>


*cas.properties :*

cas.authn.rest.uri=https://service_uri
cas.authn.rest.name=service_name

*This is an example of the JSON we are receiving from the REST service :*

{ "@class": "org.apereo.cas.authentication.principal.SimplePrincipal", 
"id": "TEST01", "attributes": { "eduPersonAffiliation": ["employee", 
"member"], "bciCodeEtablissement": "123456", "bciMatricule": "NULL_VALUE", 
"mail": "[email protected]", "sn": "Test", "givenName": "Test", 
"displayName": "test Test", "isMemberOf": ["[email protected]", 
"[email protected]", "[email protected]", 
"[email protected]", "[email protected]", 
"[email protected]", "[email protected]"] } }

Thank you for your help!

Alex.

-- 
- 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/97fbe5a0-560f-4e3c-853b-c9c738daa510%40apereo.org.

Reply via email to