Did you update the example with the latest CUBA version? The API has changed from CUBA 6 to CUBA 7, therefore you might have an issue with that.
Meanwhile you can try this example. It contains some extra libraries but also exposes custom REST API. Please let us know if you’ll have an issue with this example too.
Thank you for the response and the example. I created a new Controller and setup access to permitAll with method POST but I always get HTTP Status 403 – Forbidden error (no issue on GET).
How can I remove the authentication layer completely on Portal?
P.S. I still cannot use the Authentication class on portal module.
I am not sure if it should be on another thread. Since the Controller is created on portal-module instead of core-module, is there a way I can defined the property value in core app.properties and use in portal-module? If no, how can I define profile environment property file in portal-module?
Core module should contain services only. All interactons (REST, UI) should be placed to portal or web module. Please note that you can put custom REST controllers to web module too.
If you want to use runtime profiles for in portal module, just create property file with $profile-portal-app.properties name, similar to $profile-app.properties in core and $profile-web-app.properties for web.
Hello!
I am using cuba 7.2.13 version.
I get this error: Request processing failed; nested exception is java.lang.SecurityException: No security context bound to the current thread