Reputation: 61
I've implemented an application using Moqui Framework. I provided url:http://localhost:8080/fvl-plus-runtime/rest/s1/example/examples It is getting error like:
User [null] is not authorized for View on AT_REST_PATH [/example/loginexamples/{username}]
Upvotes: 1
Views: 548
Reputation: 1842
This feature as been added in commit #44272ba. You are now able to create a new REST service and set require-authentication=anonymous-view or anonymous-all.
See How to create a publicly accessible REST API in Moqui for more details.
Upvotes: 1
Reputation: 1776
You can add ArtifactAuthz records for all users, like the ones already in place for admin users for the REST APIs. In general it is best to secure all API access, and that is how things are setup by default. There are various examples you can follow to see them in action, see the extensive comments in the rest.xml file (the XML Screen for the /rest path).
Upvotes: 1