mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge pull request #791 from lasanthaDLPDS/master
Fixed geo-dashoard authorization issue
This commit is contained in:
commit
1a01c756b2
@ -81,7 +81,7 @@ public class DeviceAuthorizer implements Authorizer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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);
|
WebSocketSessionRequest webSocketSessionRequest = new WebSocketSessionRequest(session);
|
||||||
Map<String, String> queryParams = webSocketSessionRequest.getQueryParamValuePairs();
|
Map<String, String> queryParams = webSocketSessionRequest.getQueryParamValuePairs();
|
||||||
String deviceId = queryParams.get(DEVICE_ID);
|
String deviceId = queryParams.get(DEVICE_ID);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user