Hi Christian,
Not sure what else. I'm only starting to delve into this area and I'm not sure what else would be helpful. In general I'm looking at creating a small REST atompub service that handles authentication and this was one of the missing pieces I encountered.
Cheers,
On Sat, Mar 14, 2015 at 4:17 PM, Christian GrĂ¼n christian.gruen@gmail.com wrote:
Maybe I'm missing something but I cannot find the XQuery way to get access to the logged in user from a web application using RESTXQ.
The servlet request object has getRemoteUser and Exist, for example, has xmldb:get-current-user and Marklogic has xdmp:get-current-user.
We could add a function user:current() to the new User Module [1]. More suggestions on other, possibly missing, functions are welcome.
Best, Christian