|
@@ -40,7 +40,7 @@ public class OAuth2ResourceServerSecurityConfiguration extends WebSecurityConfig
|
|
|
protected void configure(HttpSecurity http) throws Exception {
|
|
|
// @formatter:off
|
|
|
http
|
|
|
- .authorizeRequests((authorize) -> authorize
|
|
|
+ .authorizeHttpRequests((authorize) -> authorize
|
|
|
.antMatchers(HttpMethod.GET, "/message/**").hasAuthority("SCOPE_message:read")
|
|
|
.antMatchers(HttpMethod.POST, "/message/**").hasAuthority("SCOPE_message:write")
|
|
|
.anyRequest().authenticated()
|