i return id and attributes from rest endpoint as response. my cas config
cas.authn.rest.uri=http://localhost:8082/validate cas.authn.rest.name=restauth cas.authn.rest.charset=UTF-8 cas.authn.rest.passwordEncoder.type=NONE here is the log. "dg" value is returned from endpoint. so successful authentication at rest side. but error in cas side. 2020-04-15 18:57:46,630 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports [UsernamePasswordCredential(*username=dg*, source=null, customFields={})] of type [UsernamePasswordCredential]. Examine the configuration to ensure a method of authentication is defined and analyze CAS logs at DEBUG level to trace the authentication event.> 2020-04-15 18:57:46,630 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <[restauth]: [Error while extracting response for type [class org.apereo.cas.authentication.principal.SimplePrincipal] and content type [application/json]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Missing type id when trying to resolve subtype of [simple type, class org.apereo.cas.authentication.principal.SimplePrincipal]: missing type id property '@class'; nested exception is com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class org.apereo.cas.authentication.principal.SimplePrincipal]: missing type id property '@class' at [Source: (PushbackInputStream); line: 1, column: 27] / JSON parse error: Missing type id when trying to resolve subtype of [simple type, class org.apereo.cas.authentication.principal.SimplePrincipal]: missing type id property '@class'; nested exception is com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class org.apereo.cas.authentication.principal.SimplePrincipal]: missing type id property '@class' at [Source: (PushbackInputStream); line: 1, column: 27]]> 2020-04-15 18:57:46,631 INFO [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <[Static Credentials] exception details: [dg not found in backing map.].> -- - 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/4a96cd3f-608d-4e74-9d14-df8e31a39fe2%40apereo.org.
