Can anyone please let me know how to get the user object from a request in a Restful service?
            Asked
            
        
        
            Active
            
        
            Viewed 49 times
        
    0
            
            
        - 
                    Here is the answer of your question: http://stackoverflow.com/a/3506039/2105241, The response would have the user object which would be returned from service. – Ahmad Raza Jun 25 '14 at 12:27
- 
                    I want the user from session on the server side, i mean in the actual rest method. – af_khan Jun 25 '14 at 12:35
1 Answers
0
            
            
        If user has already been authenticated, you can call request.getRemoteUser() to get his username.
 
    
    
        Konstantin
        
- 3,254
- 15
- 20
