RE: liferay 6.2 GA5 Curl https url getting exception":"java.lang.SecurityEx

srini vasulu, modified 5 Years ago. Regular Member Posts: 139 Join Date: 2/22/11 Recent Posts
Hi ,
In liferay 6.2 GA5 i am using the curl to get the remote calls and getting the authentication exception.
passing like below

C:\curl-7.71.1-win64-mingw\bin>curl https://something.net/api/jsonws/user/get-user-by-email-address -u test@liferay:test -d companyId=10153 -d emailAddress='test@liferay.com'

here we are using the CAS to login

getting below message

{"message":"Authenticated access required","exception":"java.lang.SecurityException"}
Please let me know what's the mistake here?
Thanks,
Srini
thumbnail
Krzysztof Gołębiowski, modified 5 Years ago. Liferay Master Posts: 549 Join Date: 6/25/11 Recent Posts
Usually, for CAS you use screenName instead of an email address. If I'm not mistaken, setting screenName as default authentication method in the portal affects also the way you authenticate against JSONWS. That's my guess, try using screenName instead of email.