Changes

Jump to navigation Jump to search
923 bytes added ,  11:38, 20 December 2012
add User Management (from REST article)
==Configuration==
The same options as in the case of deployment in a servlet container apply. In this case, however, there is no WAR archive. Instead, Jetty uses the directory {{Code|basex-api/src/main/webapp}}. For configuring various Jetty runtime options, such as port, context path, etc. refer to the [http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin Maven Jetty Plugin]. These should be entered in the {{Code|pom.xml}} file of the {{Code|basex-api}} project. Aswell in this case {{Code|jetty.xml}} and {{Code|web.xml}} can be configured as described above in [[#Configuration | Servlet Container Configuration]].
=Standalone Application=
Detailed description on how to start and setup the standalone BaseX HTTP server can found under [[Startup#BaseX HTTP Server|Startup: BaseX HTTP Server]].
 
 
=User Management=
 
If the HTTP server is started with no pre-defined credentials, users and passwords can be sent via [http://en.wikipedia.org/wiki/Basic_access_authentication HTTP basic authentication] with each HTTP request. Login data can be stored server-side in the <code>web.xml</code> file, or specified as [[Startup Options#BaseX HTTP Server|command-line arguments]].
 
For multi-user access place a [[Configuration#Configuration_Files | .basexperm]] in the server root. Refer to [[User_Management]] article.
 
With cURL, and most browsers, you can specify the user name and password with each HTTP request within the request string as plain text, using the format <code>USER:PASSWORD@URL</code>. An example:
 
: <code>http://admin:admin@localhost:8984/</code>
 
=Changelog=
editor, reviewer
115

edits

Navigation menu