Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You a few options here are 2:</p> <ol> <li>Use jdbc-user-service tag in authentication-provider;</li> </ol> <p>This allows you to specify a datasource and run queries to retrieve your user details. The reference is below which shows you what you can and cannot add to the tag.</p> <p>This seems to be the right option for you as you want to place the query in the xml.</p> <p>Reference: <a href="http://docs.spring.io/spring-security/site/docs/3.1.4.RELEASE/reference/appendix-namespace.html#nsa-jdbc-user-service" rel="nofollow">http://docs.spring.io/spring-security/site/docs/3.1.4.RELEASE/reference/appendix-namespace.html#nsa-jdbc-user-service</a></p> <p>Example: </p> <pre><code>&lt;authentication-manager&gt; &lt;authentication-provider&gt; &lt;jdbc-user-service data-source-ref="securityDataSource"/&gt; &lt;/authentication-provider&gt; &lt;/authentication-manager&gt; </code></pre> <p>A complete example can be found here: <a href="http://www.raistudies.com/spring-security-tutorial/authentication-authorization-spring-security-mysql-database/" rel="nofollow">http://www.raistudies.com/spring-security-tutorial/authentication-authorization-spring-security-mysql-database/</a></p> <ol> <li>Create a custom user details service;</li> </ol> <p>This allows you to provide your own implementation of the <strong>UserDetailsService</strong>. The reference to the spring doc is below.</p> <p>Reference: <a href="http://docs.spring.io/spring-security/site/docs/3.1.4.RELEASE/reference/technical-overview.html#tech-userdetailsservice" rel="nofollow">http://docs.spring.io/spring-security/site/docs/3.1.4.RELEASE/reference/technical-overview.html#tech-userdetailsservice</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload