Debian Codegraph @

doc/sources/admin/applications/gitea.rst

raw
1 Gitea
2 =====
3
4 |logo|
5
6 Presentation
7 ------------
8
9 `Gitea <https://gitea.io/>`__ is a community managed lightweight
10 code hosting solution written in Go. It is published under the MIT license.
11
12 It can be configured to authenticate users with :doc:`OpenID Connect <../idpopenidconnect>`.
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 ``gitea``
32 - Options » Basic » Client Secret : choose a client secret, such as ``xxxx``
33 - Options » Basic » Allowed redirection address : ``https://git.example.com/user/oauth2/NAME/callback``
34 - Options » ID Token Signature Algorithm : ``RS256``
35 - No Exported Attributes needed
36
37 .. note::
38
39 The redirection address is built like this: ``<Gitea service URL>`` ``/user/oauth2/`` ``<Name of the OIDC authentication source in Gitea>`` ``/callback``
40
41 Gitea
42 ~~~~~
43
44 Go in administration panel and create a new authentication source:
45
46 |screenshot_admin|
47
48 Configure settings:
49
50 - Authentication name: set here the value used for the redirection address
51 - OAuth2 Provider: set OpenID Connect
52 - Client ID: the Client ID configured on LL::NG side
53 - Client Secret: the Client Secret configured on LL::NG side
54 - OpenID Connect Auto Discovery URL: use the default OIDC configuration URL of your LL::NG server
55 - Enable the authentication source
56
57 Usage
58 -----
59
60 In Gitea login screen, a new OpenID logo appears at the bottom. Click on it to authenticate.
61
62 At first connection, the user must associate his account to an existing one (local or LDAP). The assocation is then remembered for further connections.
63
64 .. |logo| image:: /applications/gitea_logo.png
65 :class: align-center
66 .. |screenshot_admin| image:: /applications/gitea_oidc_config.png
67 :class: align-center