From 7d9eef37ed0714829b795de0cdfb5b9a3174e5b2 Mon Sep 17 00:00:00 2001 From: Tealk <12276250+Tealk@users.noreply.github.com> Date: Wed, 22 Feb 2023 17:20:47 +0100 Subject: [PATCH] website/integrations: Mobilizon instructions (#4747) * add mobilizonintegration Signed-off-by: Tealk * replace inventory placeholder Signed-off-by: Tealk * Replace placeholder Signed-off-by: Tealk * text improvement Signed-off-by: Tealk --------- Signed-off-by: Tealk --- .../integrations/services/mobilizon/index.md | 68 +++++++++++++++++++ website/sidebarsIntegrations.js | 1 + 2 files changed, 69 insertions(+) create mode 100644 website/integrations/services/mobilizon/index.md diff --git a/website/integrations/services/mobilizon/index.md b/website/integrations/services/mobilizon/index.md new file mode 100644 index 000000000..ff1e18913 --- /dev/null +++ b/website/integrations/services/mobilizon/index.md @@ -0,0 +1,68 @@ +--- +title: Mobilizon +--- + +Support level: Community + +## What is Mobilizon + +From https://joinmobilizon.org/ +:::note +Gather, organize and mobilize yourselves with a convivial, ethical, and emancipating tool. https://joinmobilizon.org +::: + +## Preparation + +The following placeholders will be used: + +- `mobilizon.company` is the FQDN of the mobilizon install. +- `authentik.company` is the FQDN of the authentik install. + +## authentik Configuration + +### Step 1 - OAuth2/OpenID Provider + +Create a OAuth2/OpenID Provider (under _Applications/Providers_) with these settings: + +- Name : mobilizon +- Redirect URI: `https://mobilizon.company/auth/keycloak/callback` + +### Step 3 - Application + +Create an application (under _Resources/Applications_) with these settings: + +- Name: Mobilizon +- Slug: mobilizon +- Provider: mobilizon + +## Mobilizon Setup + +Configure Mobilizon settings by editing the `config.exs` and add the following: + +``` +config :ueberauth, + Ueberauth, + providers: [ + keycloak: {Ueberauth.Strategy.Keycloak, [default_scope: "openid profile email"]} + ] + +config :mobilizon, :auth, + oauth_consumer_strategies: [ + {:keycloak, "authentik"} + ] + +config :ueberauth, Ueberauth.Strategy.Keycloak.OAuth, + client_id: "", + client_secret: "", + site: "https://mobilizon.company", + authorize_url: "https://mobilizon.company/application/o/authorize/", + token_url: "https://mobilizon.company/application/o/token/", + userinfo_url: "https://mobilizon.company/application/o/userinfo/", + token_method: :post +``` + +Restart mobilizon.service + +## Additional Resources + +- https://docs.joinmobilizon.org/administration/configure/auth/ diff --git a/website/sidebarsIntegrations.js b/website/sidebarsIntegrations.js index 8b2c29c46..d89f926a0 100644 --- a/website/sidebarsIntegrations.js +++ b/website/sidebarsIntegrations.js @@ -16,6 +16,7 @@ module.exports = { "services/hedgedoc/index", "services/kimai/index", "services/matrix-synapse/index", + "services/mobilizon/index", "services/nextcloud/index", "services/onlyoffice/index", "services/paperless-ng/index",