title: SpringMVC with OAuth2 to Struts2 with OAuth2
body: <p>What are the points that should be considered when moving OAuth2 configuration from a SpringMVC application to a Struts2 application?</p>
  <p>I've been trying to implement OAuth2 in my Struts2 application following <a href="https://github.com/spring-projects/spring-security-oauth" rel="nofollow noreferrer">this SpringMVC application example</a>.</p>
  <p>I've been removing code to get the example even simpler, and now the only difference between them is the <code>org.springframework.web.servlet.DispatcherServlet</code> in the example application.</p>
  <p>Besides both applications have the same OAuth configuration, my application keeps throwing the following exception:</p>
  <blockquote>
  <p>org.springframework.security.oauth2.client.resource.UserRedirectRequiredException:
  A redirect is required to get the users approval</p>
  </blockquote>
  <p>when example application runs.</p>