Debian Codegraph @

doc/sources/admin/applications/redmine.rst

raw
1 Redmine
2 =======
3
4 |logo|
5
6 Presentation
7 ------------
8
9 `Redmine <https://redmine.org/>`__ is is a flexible project management web application.
10 Written using the Ruby on Rails framework, it is cross-platform and cross-database.
11
12 It can be configured to authenticate users with :doc:`OpenID Connect <../idpopenidconnect>` with a plugin.
13
14 Configuration
15 --------------
16
17 LL:NG
18 ~~~~~
19
20 Make sure you have already
21 :doc:`enabled OpenID Connect<../idpopenidconnect>` on your LemonLDAP::NG
22 server.
23
24 Make sure you have generated a set of signing keys in
25 ``OpenID Connect Service`` » ``Security`` » ``Keys``
26
27 You also need to set a Signing key ID to a non-empty value of your choice.
28
29 Then, add a Relying Party with the following configuration:
30
31 - Options » Basic » Client ID : choose a client ID, such as ``my_client_id``
32 - Options » Basic » Client Secret : choose a client secret, such as ``my_client_secret``
33 - Options » Basic » Allowed redirection address : ``https://my_redmine_server/oic/local_login``
34 - Options » Advanced » Force claims to be returned in ID Token : ``On``
35 - Options » Security » ID Token Signature Algorithm : ``RS512``
36 - Options » Logou( » Allowed redirection address for logout : ``https://my_redmine_server/oic/local_logout``
37
38 Define exported attributes:
39
40 - ``email``
41 - ``family_name``
42 - ``given_name``
43 - ``name``
44 - ``nickname``: the user login
45
46 To transfer groups:
47
48 - Declare ``member_of`` exported attribute as an array
49 - Declare a new scope named ``groups`` whith value ``member_of``
50 - Create a local macro ``member_of`` which will return ``["admin"]`` is user is administrator and ``["user"]`` else.
51
52 Redmine
53 ~~~~~~~
54
55 Install `OpenID Connect plugin <https://github.com/devopskube/redmine_openid_connect>`__.
56
57
58 Go in Redmine admin console and configure the OpenID Connect plugin:
59
60 - Enabled: check the box
61 - Client ID: ``my_client_id``
62 - OpenID Connect server url: ``https://auth.example.com/``
63 - Client Secret: ``my_client_secret``
64 - OpenID Connect scopes: ``openid profile email groups``
65 - Authorized group: leave blank
66 - Admins group: ``admin``
67 - How often to retrieve openid configuration: leave blank
68 - Disable Ssl Validation: uncheck the box
69 - Login Selector: uncheck the box
70 - Create user if not exists: check the box
71 - Users from the following auth sources will be required to login with SSO: do not select anythin
72
73 .. attention::
74
75 A `bug <https://github.com/devopskube/redmine_openid_connect/issues/54>`__ has been reported, you must apply a patch
76 if you transfer groups.
77
78 .. note::
79
80 To bypass SSO, you can connect to `<https://my_redmine_server/login?local_login=true>`__
81
82 .. |logo| image:: /applications/redmine_logo.png
83 :class: align-center
84
85