My question is: would it make sens to use a tutorial like this (point 5) considering I'm using the JSF framework ? I know spring and jsf shouldn't be mixed up but I don't know where to draw the line really.
In the spring security documentation they inject the datasource for the JDBC authentication like this:
@Autowired private DataSource dataSource; // This, I don't know what to do
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth
.jdbcAuthentication()
.dataSource(dataSource)
.withDefaultSchema()
.withUser("user").password("password").roles("USER").and()
.withUser("admin").password("password").roles("USER", "ADMIN");
}
I'm using JSF and my datasource is specified nowhere and I'm kinda relunctant to use spring related techniques because of this : Using JSF as view technology of Spring MVC