Hello!

We have the same problem as Alex here. 

Thanks!


Le jeudi 31 octobre 2019 13:52:52 UTC-4, Alex.B. a écrit :
>
> 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": "test...@test.com <javascript:>", "sn": "Test", "givenName": 
> "Test", "displayName": "test Test", "isMemberOf": ["na...@test.com 
> <javascript:>", "registr...@test.com <javascript:>", "
> abc-scien...@test.com <javascript:>", "klm-etude...@test.com <javascript:>", 
> "klm-etude...@test.com <javascript:>", "klm-prap...@test.com <javascript:>", 
> "klm.sans...@test.com <javascript:>"] } }
>
> 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 cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/afa2f256-a60d-4034-8c00-01a3e6e7d08d%40apereo.org.

Reply via email to