title: Grails Spring Security Default Configuration: How to define default user and password
body: <p>In pure spring I can do like this</p>
  
  <pre><code>&lt;security:authentication-manager&gt;
  &lt;security:authentication-provider user-service-ref="customUserDetailsService"&gt;       
      &lt;security:password-encoder ref="passwordEncoder"/&gt;
  &lt;/security:authentication-provider&gt;
  &lt;security:authentication-provider&gt;
      &lt;security:user-service&gt;
          &lt;security:user name="admin" password="admin" authorities="ROLE_USER, ROLE_ADMIN" /&gt;
      &lt;/security:user-service&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>Is it any way to do the same in Grails with Spring Security plugin?</p>
  
  <p>I can implement my own authentication-provide but in this case I will store credentials hardcoded in class. </p>