Hi,
I want to get the user principal for a specific Flex client, i get the Flex client with following code,
but when i do flexClient.getUserPrincipal(), it returns null. but i am able to get the User Principal with following code,Code:FlexClientManager flexClientManager = messageBroker.getFlexClientManager(); String[] clientIDs = flexClientManager.getClientIds(); for (String ID : clientIDs) { FlexClient flexClient = flexClientManager.getFlexClient(ID); }
is this the best way to do this? Any suggestions?Code:UsernamePasswordAuthenticationToken principal = (UsernamePasswordAuthenticationToken) ((HttpFlexSession) flexClient.getFlexSessions().get(0)).getUserPrincipal();


Reply With Quote

