Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: liferay 6.2 GA5 Curl https url getting exception":"java.lang.SecurityEx
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
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
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.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™