Needs a database mysql ----- create table users( username varchar(50) not null primary key, password varchar(50) not null, enabled boolean not null); create table authorities ( username varchar(50) not null, authority varchar(50) not null, constraint fk_authorities_users foreign key(username) references users(username)); mvn -D-Djava.security.auth.login.config=./etc/mylogin.conf use "mvn -Djava.security.auth.login.config=./etc/mylogin.conf jetty:run" to run