On 05/10/2013 15:18, ram...@actouch.com wrote:
Hi,
Kindly help me resolve the issue in VerifyPassword Rest
call.
We are trying to use Syncope for Authentication. Trying to
integrate with the custom build application for user management. Trying
to call
rest service for verification of password.
REST API:
/rest/verifyPassword/{Username}
we are trying to pass user name as
email id username field in the UserController is getting
truncated.
Ex: username as te...@mail.com it is getting truncated as test1@mail
Kindly help us to resolve this issue. Is there any setup change is
required for this. Any configuration needs to be change or is this is a
bug.
Hi Ramesh,
an issue like yours popped in a while ago [1]: due to the way how Spring
MVC does content negotiation, you need to explicitly include the
content-type suffix in cases like yours:
/rest/verifyPassword/te...@mail.com.json?password=aPassword
Anyway, I urge to warn you that such method is deprecated and will not
be available in 1.2.X: please "use Basic-Authentication and GET
/users/self to verify authentication and retrieve user object including
assigned roles" (as reported by [2]).
Regards.
[1] http://markmail.org/message/hunpzbedncafp6gv
[2]
https://cwiki.apache.org/confluence/display/SYNCOPE/REST+API+upgrade#RESTAPIupgrade-UserService
--
Francesco Chicchiriccò
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/