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
Access Rest API without Authentication
Hi,
I create one sample rest service using this link.
Problem is when I access this API via postman or any other rest-client without basic auth it gives below error.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Forbidden><message>Access denied to org.javasavvy.leave.rest.application.LeaveRestControllerApplication#morning</message></Forbidden>
But if I add basic auth, then it works properly.So how we can access this API without basic auth.?LR Version : liferay-ce-portal-7.2.0-ga1
Appreciate your help!
Thanks in advance ..!!
I create one sample rest service using this link.
Problem is when I access this API via postman or any other rest-client without basic auth it gives below error.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Forbidden><message>Access denied to org.javasavvy.leave.rest.application.LeaveRestControllerApplication#morning</message></Forbidden>
But if I add basic auth, then it works properly.So how we can access this API without basic auth.?LR Version : liferay-ce-portal-7.2.0-ga1
Appreciate your help!
Thanks in advance ..!!
I got a solution for that refer below link
https://portal.liferay.dev/docs/7-2/deploy/-/knowledge_base/d/service-access-policies#managing-service-access-policies
https://portal.liferay.dev/docs/7-2/deploy/-/knowledge_base/d/service-access-policies#managing-service-access-policies
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™