Index of /2009/mod_authn_webid

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[   ]Download2011-02-01 14:35 272  
[   ]LICENSE2011-03-01 20:03 1.1K 
[   ]Makefile.in2011-02-01 14:35 265  
[TXT]README.html2011-02-01 14:35 2.8K 
[TXT]build.sh2011-02-01 14:35 147  
[   ]configure.in2011-02-01 14:35 1.0K 
[TXT]mod_authn_webid.c2011-04-15 08:15 15K 

WebID FOAF+SSL authentication module for Apache 2

The latest version of this module can be found at:

Visit the W3 ESW wiki for more information about FOAF+SSL:


Release versions of the following packages for your Linux distribution:

Development versions of the following packages for your Linux distribution:


Use the following compilation and installation procedure:

$ autoconf
$ ./configure
$ sudo make install

The 'make install' command calls Apache's apxs utility to create and install the mod_authn_webid DSO using default Apache module installation parameters.

Configuration Directives

Set to 'Off' to allow access control to be passed along to lower modules if the WebID is not known to this module

Sample httpd.conf

LoadModule authn_webid_module modules/

SSLVerifyClient optional_no_ca

# WebID ignored
<Location />

# WebID optional
<Location /public/>
    AuthType WebID
    Require everyone
    AuthWebIDAuthoritative off

# WebID required
<Location /private/>
    AuthType WebID
    Require valid-user

Authentication Details

Clients are verified using the following SPARQL query:

PREFIX rdf: <>
PREFIX cert: <>
PREFIX rsa: <>
SELECT ?m ?e ?mod ?exp WHERE {
    ?key cert:identity <%s>;
         rsa:modulus ?m;
         rsa:public_exponent ?e.
    OPTIONAL { ?m cert:hex ?mod . }
    OPTIONAL { ?e cert:decimal ?exp. }

%s is substituted by the client's WebID claim.

Matching modulus and exponent triggers successful authentication. Only hex characters [0-9a-f] are considered for modulus comparison.

The optional clauses maintain compatibility for users with FOAF WebIDs before the changes to the cert datatypes discussed on foaf-protocols here:


Please visit the issue tracker for bug reports, feature requests, and other support.


Joe Presbrey

$Id: README 28777 2010-04-12 20:49:23Z presbrey $