Struts2 with Spring Security plugin Oauth2

2

I would like to know if it is possible to use the Spring Security Oauth2 plugin with Struts2 or if this plugin has any restrictions that only allow SpringMVC to work?

    
asked by anonymous 19.02.2014 / 13:49

1 answer

1

As with most Spring projects, there is no restriction on using Spring Security with other frameworks, including for desktop projects. The idea of Spring Security is not one of the plug-in in Spring MVC, but a separate component.

Just to illustrate, I'm currently using Spring Security in a project with JSF. In this project, security is applied through a Servlet API filter, and is then compatible with any Servlet-based web technology, such as Spring MVC, JSF, Struts2, vRaptor, JAX-RS, JAX- WS, etc.

On the other hand, in some parts I needed to invoke the API programmatically, that is, calling methods directly, so Spring Security can still be used in any Java, even desktop, project. See this article , for example.

My only observation is to consider whether the functionality provided by the API conforms to the requirements of your system. Spring Security is good, but it will often be necessary to extend its functionality. See a question about me about this .

    
19.02.2014 / 14:26