Debian Codegraph @

doc/sources/admin/idpopenid.rst

raw
1 OpenID server
2 =============
3
4
5 .. danger::
6
7 OpenID protocol is deprecated, you should now use
8 :doc:`OpenID Connect<idpopenidconnect>`\
9
10 Presentation
11 ------------
12
13 LL::NG can act as an OpenID 2.0 Server, that can allow one to federate
14 LL::NG with:
15
16 - Another LL::NG system configured with
17 :doc:`OpenID authentication<authopenid>`
18 - Any OpenID consumer
19
20 LL::NG is compatible with the OpenID Authentication protocol `version
21 2.0 <http://openid.net/specs/openid-authentication-2_0.html>`__ and
22 `version
23 1.0 <http://openid.net/specs/openid-authentication-1_1.html>`__. It can
24 be used just to share authentication or to share user's attributes
25 following the `OpenID Simple Registration Extension 1.0
26 (SREG) <http://openid.net/specs/openid-simple-registration-extension-1_0.html>`__
27 specification.
28
29 When LL::NG is configured as OpenID identity provider, users can share
30 their authentication using [PORTAL]/openidserver/[login] where:
31
32 - [PORTAL] is the portal URL
33 - [login] is the user login (or any other session information,
34 :ref:`see below<idpopenid-configuration>`)
35
36 Example:
37
38 ::
39
40 http://auth.example.com/openidserver/foo.bar
41
42 .. _idpopenid-configuration:
43
44 Configuration
45 -------------
46
47 In the Manager, go in ``General Parameters`` » ``Issuer modules`` »
48 ``OpenID`` and configure:
49
50 - **Activation**: set to ``On``
51 - **Path**: keep ``^/openidserver/`` unless you have change
52 :ref:`Apache portal configuration<configlocation-portal>` file.
53 - **Use rule**: a rule to allow user to use this module, set to 1 to
54 always allow.
55
56
57 .. tip::
58
59 For example, to allow only users with a strong authentication
60 level:
61
62 ::
63
64 $authenticationLevel > 2
65
66
67
68 Then go in ``Options`` to define:
69
70 - **Secret token**: a secret token used to secure transmissions between
71 OpenID client and server (:ref:`see below<idpopenid-security>`).
72 - **OpenID login**: the session key used to match OpenID login.
73 - **Authorized domains**: white list or black list of OpenID client
74 domains (:ref:`see below<idpopenid-security>`).
75 - **SREG mapping**: link between SREG attributes and session keys
76 (:ref:`see below<idpopenid-shared-attributes-sreg>`).
77
78
79 .. tip::
80
81 If ``OpenID login`` is not set, it uses ``General Parameters``
82 » ``Logs`` » ``REMOTE_USER`` data, which is set to ``uid`` by
83 default
84
85 .. _idpopenid-shared-attributes-sreg:
86
87 Shared attributes (SREG)
88 ~~~~~~~~~~~~~~~~~~~~~~~~
89
90 `SREG <http://openid.net/specs/openid-simple-registration-extension-1_0.html>`__
91 permit the share of 8 attributes:
92
93 - Nick name
94 - Email
95 - Full name
96 - Date of birth
97 - Gender
98 - Postal code
99 - Country
100 - Language
101 - Timezone
102
103 Each SREG attribute will be associated to a user session key. A session
104 key can be associated to more than one SREG attribute.
105
106
107 .. note::
108
109 If the OpenID consumer ask for data, users will be prompted to
110 accept or not the data sharing.
111
112 .. _idpopenid-security:
113
114 Security
115 ~~~~~~~~
116
117 - LL::NG can be configured to restrict OpenID exchange using a white or
118 a black list of domains.
119 - If not set, the secret token is calculated using the general
120 encryption key.
121
122
123 .. attention::
124
125 Note that :doc:`SAML<idpsaml>` protocol is more secured
126 than OpenID, so when your partners are known, prefer
127 :doc:`SAML<idpsaml>`.