diff options
author | egernug <gerard.nugent@est.tech> | 2023-07-26 10:36:15 +0100 |
---|---|---|
committer | egernug <gerard.nugent@est.tech> | 2023-09-14 10:47:51 +0100 |
commit | 9693ec51cf6526082f0ad0c3ad208d144cbbb163 (patch) | |
tree | b3e0c1a0506bcb6d17687f353448e41c092fb964 /cps-application/src/main/java/org/onap | |
parent | bf8997853d7759383303b07bbeb780ca73428536 (diff) |
Migrate CPS to Spring-boot 3.0
Issue-ID: CPS-1789
Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: I932fca8a50cedf2ae0604401c5e2b27896e4d449
Diffstat (limited to 'cps-application/src/main/java/org/onap')
-rw-r--r-- | cps-application/src/main/java/org/onap/cps/config/WebSecurityConfig.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cps-application/src/main/java/org/onap/cps/config/WebSecurityConfig.java b/cps-application/src/main/java/org/onap/cps/config/WebSecurityConfig.java index aedc6a8d66..c8b2509637 100644 --- a/cps-application/src/main/java/org/onap/cps/config/WebSecurityConfig.java +++ b/cps-application/src/main/java/org/onap/cps/config/WebSecurityConfig.java @@ -54,7 +54,7 @@ public class WebSecurityConfig { * @param password password */ public WebSecurityConfig( - @Autowired @Value("${security.permit-uri}") final String permitUris, + @Autowired @Value("${permit-uri}") final String permitUris, @Autowired @Value("${security.auth.username}") final String username, @Autowired @Value("${security.auth.password}") final String password ) { @@ -80,8 +80,8 @@ public class WebSecurityConfig { http .httpBasic() .and() - .authorizeRequests() - .antMatchers(permitUris).permitAll() + .authorizeHttpRequests() + .requestMatchers(permitUris).permitAll() .anyRequest().authenticated() .and() .csrf().disable(); |