Fixed geo-dashoard authorization issue

revert-dabc3590
lasantha 7 years ago
parent dcb2de4c9c
commit 0dadb44f4a

@ -81,7 +81,7 @@ public class DeviceAuthorizer implements Authorizer {
}
@Override
public boolean isAuthorized(AuthenticationInfo authenticationInfo, Session session, String stream) {
public synchronized boolean isAuthorized(AuthenticationInfo authenticationInfo, Session session, String stream) {
WebSocketSessionRequest webSocketSessionRequest = new WebSocketSessionRequest(session);
Map<String, String> queryParams = webSocketSessionRequest.getQueryParamValuePairs();
String deviceId = queryParams.get(DEVICE_ID);

Loading…
Cancel
Save