read grant to anonymous user
Thursday, 8 September 2016 · 2 messages
RM
raffaele messuti8 Sep 2016 12:18 #
hi, i'm quite a newbie to basex (and generally xquery)
a simple question (i'm not finding answers in the wiki): how i can grant a read permission to an anonymous (no password) user?
the common use case is to access raw xml files via rest
/rest/{db}/{file.xml}.
this don't work:
Quoted text · 1 line
> grant read on [db] to *
Admin user cannot be modified.
as a solution i was thinking to proxy basex through nginx and use "proxy_set_header Authorization"
thanks
PS/ my first attempt to learn xquery is here, into a jupyter notebook maybe is interesting for someone:
https://github.com/atomotic/bni-xquery/blob/master/bni-xquery.ipynb
--
raffaele
RM
raffaele messuti8 Sep 2016 16:38 #
Quoted text · raffaele messuti · 5 lines
On 08/09/16 12:18, raffaele messuti wrote: > a simple question (i'm not finding answers in the wiki): how i can grant > a read permission to an anonymous (no password) user? > the common use case is to access raw xml files via rest > /rest/{db}/{file.xml}.
i answer myself: http://docs.basex.org/wiki/Web_Application
org.basex.user, org.basex.password in web.xml
ciao
--
raffaele
Written for BaseX 8.5. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery