You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2013/08/23 23:02:58 UTC

svn commit: r1517032 - /jena/site/trunk/content/documentation/jdbc/drivers.mdtext

Author: rvesse
Date: Fri Aug 23 21:02:58 2013
New Revision: 1517032

URL: http://svn.apache.org/r1517032
Log:
Finish bulk of driver specific documentation

Modified:
    jena/site/trunk/content/documentation/jdbc/drivers.mdtext

Modified: jena/site/trunk/content/documentation/jdbc/drivers.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/jdbc/drivers.mdtext?rev=1517032&r1=1517031&r2=1517032&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/jdbc/drivers.mdtext (original)
+++ jena/site/trunk/content/documentation/jdbc/drivers.mdtext Fri Aug 23 21:02:58 2013
@@ -154,7 +154,31 @@ type you'd prefer to have the driver ret
 you must set them to formats that ARQ supports, the ARQ [WebContent](http://jena.staging.apache.org/documentation/javadoc/arq/org/apache/jena/riot/WebContent.html)
 class has constants for the various supported formats.
 
+#### Authentication
+
 There is also comprehensive support for authentication using this driver, the standard JDBC `user`
 and `password` parameters are used for credentials and then a selection of driver specific
 parameters are used to configure how you wish the driver to authenticate.
 
+Under the hood authentication uses the new `HttpAuthenticator` framework introduced in the same
+release as Jena JDBC, see [HTTP Authentication in ARQ](/documentation/query/http-auth.html).  This means
+that it can support standard HTTP auth methods (Basic, Digest etc) or can use more complex schemes
+such as forms based auth with session cookies.
+
+To set up standard HTTP authentication it is sufficient to specify the `user` and `password` fields.  As
+with any JDBC application we **strongly** recommend that you do not place these in the connection URL
+directly but rather use the `Properties` object to pass these in.  One option you may wish to include
+if your endpoints use HTTP Basic authentication is the `preemptive-auth` parameter which when set to
+true will enable preemptive authentication.  While this is less secure it can be more performant if
+you are making lots of queries.
+
+Setting up form based authentication is somewhat more complex, at a minimum you need to provide the 
+`form-url` parameter with a value for the URL that user credentials should be POSTed to in order to
+login.  You may need to specify the `form-user-field` and `form-password-field` parameters to provide
+the name of the fields for the login request, by default these assume you are using an Apache `mod_auth_form`
+protected server and use the appropriate default values.
+
+The final option for authenticator is to use the `authenticator` parameter via the `Properties` object
+to pass in an actual instance of a `HttpAuthenticator` that you wish to use.  This method is the most
+powerful in that it allows you to use any authentication method that you need.
+