Skip to content

Commit

Permalink
final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jarne authored and jarne committed Nov 6, 2018
1 parent 9348510 commit 8f7b57a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions processor/src/main/java/be/kdg/processor/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,18 @@ protected void configure(AuthenticationManagerBuilder auth) {
protected void configure(HttpSecurity http) throws Exception {
http.
authorizeRequests()
.antMatchers("/").permitAll()
.antMatchers("/api/**").permitAll()
.antMatchers("/user/login").permitAll()
.antMatchers("/user/register").permitAll()
.antMatchers("/app/**", "/option/**", "/user/menu").hasAuthority("ADMIN").anyRequest().authenticated()
.and().csrf().disable()
.antMatchers("/").permitAll()
.antMatchers("/api/**").permitAll()
.antMatchers("/user/login").permitAll()
.antMatchers("/app/**", "/option/**", "/user/menu").hasAuthority("ADMIN").anyRequest().authenticated()
.and().csrf().disable()
.formLogin().loginPage("/user/login")
.failureUrl("/user/login?error=true")
.defaultSuccessUrl("/user/menu", true)
.and()
.failureUrl("/user/login?error=true")
.defaultSuccessUrl("/user/menu", true)
.and()
.logout()
.logoutRequestMatcher(new AntPathRequestMatcher("/user/logout"))
.logoutSuccessUrl("/");
.logoutRequestMatcher(new AntPathRequestMatcher("/user/logout"))
.logoutSuccessUrl("/");
}

/**
Expand Down
2 changes: 1 addition & 1 deletion simulator/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ scheduler.peakrate=500
scheduler.checktime=60000

# Generator config
generator.type=file
generator.type=random
generator.message.maxid=5
generator.filepath=simulator/src/main/resources/files/
generator.numberOfFiles=3
Expand Down

0 comments on commit 8f7b57a

Please sign in to comment.