Skip to content

Commit

Permalink
Added permission details for swagger endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
GoosvandenBekerom committed Jun 12, 2018
1 parent 572c1ce commit 7c9f690
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class SecurityConfig(private val userDetailService: UserDetailsService, private
http.cors()
.and().csrf().disable()
.authorizeRequests()
.antMatchers("/v2/api-docs","/swagger-resources","/swagger-resources/**", "/swagger-ui.html", "/webjars/**").permitAll()
.antMatchers(HttpMethod.POST, "/api/users").permitAll()
.antMatchers(HttpMethod.GET, "/actuator/**").permitAll()
.anyRequest().authenticated()
Expand Down

0 comments on commit 7c9f690

Please sign in to comment.