package com.authserver;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

@EnableWebSecurity
public class SecurityConfig {
	
	@Autowired
	private DataSource dataSource;

	@Autowired
	public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
		auth
			.jdbcAuthentication()
				.dataSource(dataSource)
				.withDefaultSchema()
				.withUser("pasta").password("tonno").roles("USER")
				.and()
				.withUser("pizza").password("wuster").roles("ADMIN");
	}
}
@@ -606,13 +606,16 @@
 er(%22
-pasta
+Gabriele
 %22).p
@@ -627,13 +627,14 @@
 rd(%22
-tonno
+g_pass
 %22).r
@@ -676,12 +676,14 @@
 er(%22
-pizz
+Daniel
 a%22).
@@ -696,14 +696,14 @@
 rd(%22
-wuster
+d_pass
 %22).r
@@ -721,8 +721,9 @@
 %22);%0A%09%7D%0A%7D
+%0A

Update SecurityConfig.java