Skip to content

Commit 1391797

Browse files
committed
Added security for missing CRM endpoint
1 parent 2d4d2f3 commit 1391797

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

server/src/main/java/invite/security/SecurityConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.springframework.core.env.Environment;
1717
import org.springframework.core.env.Profiles;
1818
import org.springframework.scheduling.annotation.EnableScheduling;
19-
import org.springframework.security.authorization.AuthorizationDecision;
2019
import org.springframework.security.config.Customizer;
2120
import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;
2221
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
@@ -253,7 +252,7 @@ SecurityFilterChain jwtSecurityFilterChain(HttpSecurity http) throws Exception {
253252
@Order(4)
254253
public SecurityFilterChain internalCRMApiSecurityFilterChain(HttpSecurity http) throws Exception {
255254
http
256-
.securityMatcher("/crm/profile/**","/crm/api/v1/**")
255+
.securityMatcher("/crm/profile/**", "/crm/api/v1/**", "/api/profile")
257256
//crm/api/v1/invite/resend /crm/api/v1/profiles
258257
.sessionManagement(session ->
259258
session.sessionCreationPolicy(SessionCreationPolicy.STATELESS)

0 commit comments

Comments
 (0)