|
@@ -56,11 +56,11 @@ public class KeycloakSecurityConfig extends KeycloakWebSecurityConfigurerAdapter
|
|
|
.antMatchers("/*.html", "/favicon.ico","/v2/api-docs", "/webjars/**", "/swagger-resources/**", "/*.js").permitAll()
|
|
|
.antMatchers("/api/**").hasRole("iot_client_user")
|
|
|
.antMatchers("/aligenieDevice/invoke/**").hasRole("iot_client_user")
|
|
|
- .antMatchers("/**/save*").hasRole("iot_write")
|
|
|
- .antMatchers("/**/del*").hasRole("iot_write")
|
|
|
- .antMatchers("/**/add*").hasRole("iot_write")
|
|
|
- .antMatchers("/**/clear*").hasRole("iot_write")
|
|
|
- .antMatchers("/**/set*").hasRole("iot_write")
|
|
|
+ .antMatchers("/**/save*/**").hasRole("iot_write")
|
|
|
+ .antMatchers("/**/del*/**").hasRole("iot_write")
|
|
|
+ .antMatchers("/**/add*/**").hasRole("iot_write")
|
|
|
+ .antMatchers("/**/clear*/**").hasRole("iot_write")
|
|
|
+ .antMatchers("/**/set*/**").hasRole("iot_write")
|
|
|
.antMatchers("/**").hasAnyRole(systemRole)
|
|
|
.and().csrf().disable();
|
|
|
}
|