-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
Fix #3550
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,25 +52,9 @@ protected void configure(HttpSecurity http) throws Exception { | |
.sessionCreationPolicy(SessionCreationPolicy.STATELESS) | ||
.and() | ||
.authorizeRequests() | ||
|
||
.antMatchers("/api/logs/**").hasAuthority(AuthoritiesConstants.ADMIN) | ||
.antMatchers("/api/**").authenticated() | ||
.antMatchers("/metrics/**").permitAll() | ||
.antMatchers("/health/**").permitAll() | ||
.antMatchers("/trace/**").permitAll() | ||
.antMatchers("/dump/**").permitAll() | ||
.antMatchers("/shutdown/**").permitAll() | ||
.antMatchers("/beans/**").permitAll() | ||
.antMatchers("/configprops/**").permitAll() | ||
.antMatchers("/info/**").permitAll() | ||
.antMatchers("/autoconfig/**").permitAll() | ||
.antMatchers("/env/**").permitAll() | ||
.antMatchers("/mappings/**").permitAll() | ||
.antMatchers("/liquibase/**").permitAll() | ||
.antMatchers("/v2/api-docs/**").permitAll() | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jdubois
Author
Member
|
||
.antMatchers("/configuration/security").permitAll() | ||
.antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN) | ||
.antMatchers("/configuration/ui").permitAll() | ||
.antMatchers("/protected/**").authenticated() | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jdubois
Author
Member
|
||
.and() | ||
.apply(securityConfigurerAdapter()); | ||
|
||
|
@@ -123,25 +107,9 @@ public void configure(HttpSecurity http) throws Exception { | |
.sessionCreationPolicy(SessionCreationPolicy.STATELESS) | ||
.and() | ||
.authorizeRequests() | ||
|
||
.antMatchers("/api/logs/**").hasAuthority(AuthoritiesConstants.ADMIN) | ||
.antMatchers("/api/**").authenticated() | ||
.antMatchers("/metrics/**").permitAll() | ||
.antMatchers("/health/**").permitAll() | ||
.antMatchers("/trace/**").permitAll() | ||
.antMatchers("/dump/**").permitAll() | ||
.antMatchers("/shutdown/**").permitAll() | ||
.antMatchers("/beans/**").permitAll() | ||
.antMatchers("/configprops/**").permitAll() | ||
.antMatchers("/info/**").permitAll() | ||
.antMatchers("/autoconfig/**").permitAll() | ||
.antMatchers("/env/**").permitAll() | ||
.antMatchers("/mappings/**").permitAll() | ||
.antMatchers("/liquibase/**").permitAll() | ||
.antMatchers("/v2/api-docs/**").permitAll() | ||
This comment has been minimized.
Sorry, something went wrong. |
||
.antMatchers("/configuration/security").permitAll() | ||
.antMatchers("/configuration/ui").permitAll() | ||
.antMatchers("/protected/**").authenticated(); | ||
.antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN) | ||
.antMatchers("/configuration/ui").permitAll(); | ||
|
||
} | ||
|
||
|
@jdubois you removed swagger endpoint as well is that required?