diff --git a/pom.xml b/pom.xml index 4a08061..9de937c 100644 --- a/pom.xml +++ b/pom.xml @@ -62,11 +62,6 @@ org.springframework.security spring-security-messaging - - org.springframework.boot - spring-boot-starter-websocket - - org.springframework.boot spring-boot-devtools diff --git a/src/main/java/com/xkrs/common/config/WebSocketSecurityConfig.java b/src/main/java/com/xkrs/common/config/WebSocketSecurityConfig.java deleted file mode 100644 index 5ea9f85..0000000 --- a/src/main/java/com/xkrs/common/config/WebSocketSecurityConfig.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.xkrs.common.config; - -import org.springframework.context.annotation.Configuration; -import org.springframework.security.config.annotation.web.messaging.MessageSecurityMetadataSourceRegistry; -import org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer; - -import static org.springframework.messaging.simp.SimpMessageType.MESSAGE; -import static org.springframework.messaging.simp.SimpMessageType.SUBSCRIBE; - - -/** - * @author xkrs - */ -@Configuration -public class WebSocketSecurityConfig extends AbstractSecurityWebSocketMessageBrokerConfigurer { - @Override - protected void configureInbound(MessageSecurityMetadataSourceRegistry messages) { - messages - .nullDestMatcher().authenticated() - .simpSubscribeDestMatchers("/user/queue/errors").permitAll() - .simpTypeMatchers(MESSAGE, SUBSCRIBE).denyAll() - .anyMessage().denyAll(); - - } -} \ No newline at end of file