Skip to content

Commit

Permalink
fix: securityConfig
Browse files Browse the repository at this point in the history
Signed-off-by: PhilippFruh <[email protected]>
  • Loading branch information
PhilippFr committed Jul 5, 2022
1 parent 8ac0d93 commit fa09f8b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ protected void configure(HttpSecurity http) throws Exception {
httpSecurity.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.sessionAuthenticationStrategy(sessionAuthenticationStrategy()).and().authorizeRequests()
.antMatchers(WHITE_LIST).permitAll()
.antMatchers("/user", "/user/**").permitAll()
.antMatchers("/agency", "/agency/**").permitAll()
.antMatchers("/admin", "/admin/**").hasAuthority(APPOINTMENT_ADMIN.getAuthority())
.anyRequest().denyAll();
.antMatchers("/agencies", "/agencies/**").permitAll()
.antMatchers("/consultants", "/consultants/**").permitAll()
.antMatchers("/askers", "/askers/**").permitAll()
.anyRequest().permitAll();
}

/**
Expand Down

0 comments on commit fa09f8b

Please sign in to comment.