Message Boards

Spring RESTful services with Liferay 7.3

Dipak Ahuja, modified 3 Years ago.

Spring RESTful services with Liferay 7.3

New Member Posts: 7 Join Date: 7/22/20 Recent Posts
Hi Team,I am porting our existing application from Liferay 6.1 to Liferay 7.3, and I found that we have now PortletMVC4Spring library support for new Spring versions (5.0 and higher). In the same line, we have to migrate our existing REST written with Spring framework by following this article https://github.com/vianneyfaivre/liferay-spring-rest-portlet where we have added our authentication (Basic) check at Spring Interceptors. Now, while we are moving to Liferay 7.3 with new Portlet-Spring library, do we still need to perform the similar kind of XML-based configuration for this or there are any changes? Any example for this would be a great help.

In addition, we would like to have JWT based spring security authentication for our Spring-REST endpoints, can that be done using @EnableWebSecurity annotations and Authentication Manager classes?

Thanks in advance.

Cheers,
Dipak Ahuja
Dipak Ahuja, modified 3 Years ago.

RE: Spring RESTful services with Liferay 7.3

New Member Posts: 7 Join Date: 7/22/20 Recent Posts
Can someone help with this?