Skip to content

Commit

Permalink
fix: Ensure /websocket/tracker/ cant bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
sendilkumarn committed Apr 18, 2021
1 parent b59bdf9 commit b7fe440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ class SecurityConfiguration(
.antMatchers("/api/admin/**").hasAuthority(ADMIN)
.antMatchers("/api/**").authenticated()
<%_ if (websocket === 'spring-websocket') { _%>
.antMatchers("/websocket/tracker").hasAuthority(ADMIN)
.antMatchers("/websocket/**").permitAll()
.antMatchers("/websocket/**").authenticated()
<%_ } _%>
.antMatchers("/management/health").permitAll()
.antMatchers("/management/health/**").permitAll()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ class UaaConfiguration(
.antMatchers("/api/authenticate").permitAll()
.antMatchers("/api/account/reset-password/init").permitAll()
.antMatchers("/api/account/reset-password/finish").permitAll()
.antMatchers("/api/**").authenticated()
.antMatchers("/api/**").authenticated()<% if (websocket === 'spring-websocket') { %>
.antMatchers("/websocket/**").authenticated()<% } %>
.antMatchers("/management/health").permitAll()
.antMatchers("/management/health/**").permitAll()
.antMatchers("/management/**").hasAuthority(ADMIN)
Expand Down

0 comments on commit b7fe440

Please sign in to comment.