05-21-2012 07:14 AM
How do I get current user from a restlet?
I don't want to use Seam for my restlet.
05-21-2012 08:20 AM
Hi,
you can get the principal from the HttpServletRequest object using HttpServletRequest#getUserPrincipal() .
Note that Restlet is not what Nuxeo recommends for REST APIs. We prefer Content Automation or JAX-RS/WebEngine.
05-21-2012 08:20 AM
Hi,
you can get the principal from the HttpServletRequest object using HttpServletRequest#getUserPrincipal() .
Note that Restlet is not what Nuxeo recommends for REST APIs. We prefer Content Automation or JAX-RS/WebEngine.
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.