Struts2 with Spring Security Oauth2 plugin

Asked

Viewed 125 times

2

I wonder if it is possible to use the Oauth2 plugin of Spring Security with Struts2 or if this plugin has some restriction that only allows to work in Springmvc?

1 answer

1


Like most Spring projects, there is no restriction on using Spring Security with other frameworks, including for projects desktop. Spring Security’s idea is not one plug-in Spring MVC, but an independent component.

Just for example, I am currently using Spring Security in a JSF project. In this project security is applied through a filter of the Servlets API, and is then compatible with any Servlets-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 project, even desktop. Behold this article, for example.

My only observation is to consider whether the features provided by the API are in accordance with your system requirements. Spring Security is good, but it will often be necessary to extend its functionality. See a question of mine on that.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.