title: Grails 3 Spring Security override login form
body: <p>I've found a few things from spring documentation that you can override the login controller and form. I just want to override the login form itself while keeping the default controller. I found this: </p>
  
  <blockquote>
    <p>In the grails security plugin, the login gsp page is located at grails-app/views/login/auth.gsp and the controller at grails-app/controllers/grails/plugin/springsecurity/LoginController.groovy. I don't think the controller can be overwritten by simply creating your own implementation, but you should be able to override the gsp page by placing your own auth.gsp in the same path shown above, in your app. </p>
  </blockquote>
  
  <p><a href="https://plus.google.com/117486613280979732172/posts/cvqcfAQVWE6" rel="nofollow">https://plus.google.com/117486613280979732172/posts/cvqcfAQVWE6</a></p>
  
  <p>However, this is just not working to override the page and the default page keeps coming up. Has anyone done this with Grails 3 and spring security libraries?</p>
  
  <p>EDIT:
  I'm using OAuth2 by using these libraries and setting up my own beans. I think the other way might be to use grails plugins for spring security. Is there a way to override the login page using these libraries?</p>
  
  <pre><code>compile "org.springframework.boot:spring-boot-starter-security"
  compile "org.springframework.security.oauth:spring-security-oauth2:2.0.8.RELEASE"
  </code></pre>