hey, i got same issue. actually i dont understand solution. can you provide
more information?
15 Haziran 2018 Cuma 20:33:54 UTC+3 tarihinde Raghavan TV yazdı:
>
> Hi,
>
> Am testing CAS against rest-authentication method.
>
> But am always receiving an error in the log that says
> [1;31m2018-06-15 22:59:38,794 ERROR [org.apereo.cas.authentication.
> PolicyBasedAuthenticationManager] - <[restauth]: [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: 54] / 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: 54]]> [m
> [1;31m2018-06-15 22:59:38,795 ERROR [org.apereo.cas.authentication.
> PolicyBasedAuthenticationManager] - Credentials may be incorrect or CAS cannot find authentication handler
> that supports [admin] 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.> [m
>
>
>
> Am I missing some configuration related to Policy ?
>
>
> Environment
> Windows 7
> JDK: 8
> Tomcat: 9.0.8
>
>
>
>
> Steps followed
>
> 1) Edited the pom.xml to add the rest-authentication overlay
>
> org.apereo.cas
> cas-server-support-rest-authentication
> ${cas.version}
>
> 2) Deployed a new REST (mock) service
>
> Note:
> Checked the logs and the request from CAS server is fine and the response
> is also a HTTP-200 with following response
> {"@c":".SimplePrincipal","attributes":{},"id":"adminuser"}
>
>
> 3) Edited application.properties with following configured
>
> cas.authn.accept.users=
>> logging.level.org.apereo=TRACE
>> logging.level.org.jasig=TRACE
>> logging.level.org.apache=DEBUG
>>
>> cas.authn.rest.uri=http://localhost:9909/idp/authenticate
>> cas.authn.rest.name=restauth
>> cas.authn.rest.passwordEncoder.type=NONE
>>
>>
>
>
--
- 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/84b7a874-15af-4e65-b6e1-9c8b49e60ff2%40apereo.org.