Debian Codegraph @

doc/sources/admin/authwebid.rst

raw
1 WebID
2 =====
3
4 ============== ===== ========
5 Authentication Users Password
6 ============== ===== ========
7 ✔ ✔
8 ============== ===== ========
9
10 Presentation
11 ------------
12
13 `WebID <http://www.w3.org/wiki/WebID>`__ is a way to uniquely identify a
14 person, company, organisation, or other agent using a URI and a
15 certificate.
16
17 You need `Web::ID <https://metacpan.org/release/Web-ID>`__ package.
18
19 Configuration
20 -------------
21
22 In Manager, go in ``General Parameters`` > ``Authentication modules``
23 and choose WebID for authentication module. You can also use WebID as
24 user database.
25
26 Then, go in ``WebID parameters``:
27
28 - **Authentication level**: authentication level for this module.
29 - **WebID whitelist**: list of space separated hosts granted to host
30 FOAF document. You can use '*' character. Example :``*.partner.com``
31
32 If you use WebID as user database, declare values in **exported
33 variables** :
34
35 - use any key name you want. If you want to refuse access when a data
36 is missing, just add a "!" before the key name
37 - in the value field, set the field name. Take a look at
38 http://xmlns.com/foaf/spec/#sec-crossref. Example
39 :``name => foaf:name``
40
41 See also :doc:`exported variables configuration<exportedvars>`.
42
43 Apache configuration
44 ~~~~~~~~~~~~~~~~~~~~
45
46 Portal host must be configured to use SSL and must ask for client
47 certificate. It is recommended to use optional_no_ca since WebID doesn't
48 use certificate authorities :
49
50 .. code-block:: apache
51
52 <VirtualHost _default_:443>
53 ServerName auth.example.com
54 SSLEngine on
55 SSLCertificateFile ...
56 SSLCertificateKeyFile ...
57 SSLVerifyClient optional_no_ca
58 ...
59 </VirtualHost>
60
61 Tests
62 ~~~~~
63
64 To test this, you can build your own WebID certificate using one of :
65
66 - `Web::ID::Certificate::Generator <https://metacpan.org/module/Web::ID::Certificate::Generator>`__
67 - `my-profile.eu <https://my-profile.eu/>`__
68 - `gen-webid-cert.sh <https://gist.github.com/njh/2432427>`__