package org.bluedevel.hollidaymanager.configuration;

import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @author Robin Engel on 08.12.16.
 */
@EnableWebSecurity
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {

    @Override
    protected void configure(HttpSecurity http) throws Exception {

    }
}

@@ -47,16 +47,124 @@
 ation;%0A%0A
+import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;%0A
 import o
@@ -649,16 +649,462 @@
 ption %7B%0A
+        http%0A                .authorizeRequests()%0A                .antMatchers(%22/css/**%22, %22/%22).permitAll()%0A                .antMatchers(%22/greeting%22).hasRole(%22USER%22)%0A                .and()%0A                .formLogin();%0A    %7D%0A%0A    @Override%0A    protected void configure(AuthenticationManagerBuilder auth) throws Exception %7B%0A        auth%0A                .inMemoryAuthentication()%0A                .withUser(%22user%22).password(%22password%22).roles(%22USER%22);
 %0A    %7D%0A%7D

enable login