Debian Codegraph @

doc/sources/admin/applications/mobilizon.rst

raw
1 Mobilizon
2 =========
3
4 |mobilizon_logo.jpg|
5
6 Presentation
7 ------------
8
9 `Mobilizon <https://joinmobilizon.org>`__ is an online tool to help manage your events, your profiles and your groups.
10
11 Mobilizon lets users `authenticate with OpenID Connect <https://docs.joinmobilizon.org/administration/configure/auth/#oauth>`__ through the same plugin used by Keycloak.
12
13 First, make sure you have set up LemonLDAP::NG 's
14 :doc:`OpenID Connect service<..//openidconnectservice>` and added
15 :doc:`a Relying Party for your Mobilizon instance<..//idpopenidconnect>`
16
17 The only options you need to configure are:
18
19 * *Client ID*: choose one
20 * *Client Secret*: choose one
21 * *Allowed redirection addresses for login*: ``https://mobilizon.example.com/auth/keycloak/callback``
22
23 Mobilizon configuration
24 -----------------------
25
26 Edit ``/etc/mobilizon/config.exs``, and adjust the Client ID, Client Secret and URLs to match your domain ::
27
28 config :ueberauth,
29 Ueberauth,
30 providers: [
31 keycloak: {Ueberauth.Strategy.Keycloak, [default_scope: "openid profile email"]}
32 ]
33
34 config :mobilizon, :auth,
35 oauth_consumer_strategies: [
36 {:keycloak, "LemonLDAP::NG"}
37 ]
38
39 config :ueberauth, Ueberauth.Strategy.Keycloak.OAuth,
40 client_id: "CHANGEME",
41 client_secret: "CHANGEME",
42 site: "https://auth.example.com",
43 authorize_url: "https://auth.example.com/oauth2/authorize",
44 token_url: "https://auth.example.com/oauth2/token",
45 userinfo_url: "https://auth.example.com/oauth2/userinfo",
46 token_method: :post
47
48
49 .. |mobilizon_logo.jpg| image:: /applications/mobilizon_logo.jpg
50 :class: align-center
51