Spring Security 3 Integration with GWT 2.1 REST / JSON Application

I need to use Spring Security 3 in my application, which is compiled by Spring 3 for the server side and GWT 2.1 for the client side.

The client side and the server side are completely decoupled, I mean that they do not belong to the same project in the eclipse workspace (the server part is controlled by maven and the client side uses the pre-created ant files), and so far they are "exchanging" each other with using Rest / Json.

Googling I found a few guides and tips for integrating with Spring Security, but they all assume that the "client side" knows the classes of the spring server, and therefore use @Controller @Autowired, etc. under the gwt.server package. In my case, this is impossible (or not cleaned).

Is there a way to use Spring Security and keep the code "untied"? Maybe for each (rest) of the client’s request I should use “basic authentication”?

Thanks Rand

+3
source share
2 answers

Here are some links that I found and used when implementing GWT / Spring Security:

http://blahti.wordpress.com/2010/02/04/basics-of-gwt-authentication/

http://www.javacodegeeks.com/2010/12/securing-gwt-apps-with-spring-security.html

, GWT html-, , . , spring , , , - , .

+2

Source: https://habr.com/ru/post/1783831/


All Articles