Database credentials not enforced over REST?
Wednesday, 15 December 2010 · 2 messages
MD
Mahender Didwania15 Dec 2010 13:43 #
Hi,
If I contact a BaseX instance over REST, I can drop databases/collections without passing credentials in basic auth header, using command= query param (is there any other mechanism for auth over REST supported by BaseX?).
Tried this on a collection newly created using REST...do we have to 'add' credentials to DB/collection after creating it? If yes, how?
Regards,
Mahender
CG
Christian Grün15 Dec 2010 17:24 #
Quoted text · Mahender Didwania · 1 line
> If I contact a BaseX instance over REST, I can drop databases/collections without passing credentials in basic auth header, using command= query param (is there any other mechanism for auth over REST supported by BaseX?).
By default, JaxRx is started with admin rights; to restrict
permissions, you specify another user. Just specify "-h" to get all JaxRx arguments, or try..
new JaxRxServer("-h")
Hope this helps,
Christian
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery