Use securityMatcher() and authorizeHttpRequests()
Closes gh-922
This commit is contained in:
@@ -83,8 +83,8 @@ public class JwtUserInfoMapperSecurityConfig {
|
||||
)
|
||||
);
|
||||
http
|
||||
.requestMatcher(endpointsMatcher)
|
||||
.authorizeRequests((authorize) -> authorize
|
||||
.securityMatcher(endpointsMatcher)
|
||||
.authorizeHttpRequests((authorize) -> authorize
|
||||
.anyRequest().authenticated()
|
||||
)
|
||||
.csrf(csrf -> csrf.ignoringRequestMatchers(endpointsMatcher))
|
||||
|
||||
Reference in New Issue
Block a user