Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:2.0:single_sign_on:oidc_mailman3 [2025/05/30 15:22] – kainhofer | en:2.0:single_sign_on:oidc_mailman3 [2026/09/09 13:55] (current) – [Setting up the Client (RP) in Admidio] kainhofer | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| Throughout the document we will assume you have both Admidio and Mailman3 already set up properly at https:// | Throughout the document we will assume you have both Admidio and Mailman3 already set up properly at https:// | ||
| - | + | ||
| - | As a first step, one needs to **configure Admidio to act as an OpenID Provider** (OP). This has to be done once and is not specific to Mailman3. Please | + | As a first step, one needs to **configure Admidio to act as an OpenID Provider** (OP). This has to be done once and is not specific to any particular client. Please [[en: |
| {{ : | {{ : | ||
| - | Basically, one (1) needs to **create a cryptographic key** to sign message and **choose a unique EntityID**. | + | |
| - | The page https:// | + | Basically, one needs to enable OpenID Connect (OIDC). The Issuer URL should in most cases be left blank, which means Admidio' |
| + | |||
| + | The page https:// | ||
| ===== Quick Overview ===== | ===== Quick Overview ===== | ||
| - | Setting up a client (OpenID " | + | Setting up a client (OpenID " |
| + | - The Mailman3 client (RP) needs to be set up with the data about the OpenID Provider (OP), which can be done by providing the Discovery URL. | ||
| + | - Admidio needs to be told about the client. In particular, the entity ID and the redirect URL must be given, and a custom-generated (random) secret must be copied to the client configuration. | ||
| The concrete steps are: | The concrete steps are: | ||
| Line 26: | Line 31: | ||
| * Also, choose which scopes (groups of profile fields) should be requested from Admidio (" | * Also, choose which scopes (groups of profile fields) should be requested from Admidio (" | ||
| * In **Admidio**, | * In **Admidio**, | ||
| - | * Choose an **label for the client** (displayed | + | * Choose an easily understood |
| * Enter the **ClientID from the RP**, copy the created Client Secret, and enter the **Redirect URI** for the RP. The latter includes the provider_id and has the form '' | * Enter the **ClientID from the RP**, copy the created Client Secret, and enter the **Redirect URI** for the RP. The latter includes the provider_id and has the form '' | ||
| + | * Many open source OIDC clients do not support encryption (PKCE, which is a security mechanism that prevents attackers from obtaining access unless their application started the initial login). By default, PKCE is required by Admidio, so in this case make sure that the requirement checkbox is turned off. Otherwise you will get an error. | ||
| * In Admidio, map the user ID, username, email and fullname to fields that are included in the OpenID login response (so-called " | * In Admidio, map the user ID, username, email and fullname to fields that are included in the OpenID login response (so-called " | ||
| Line 59: | Line 65: | ||
| * Go to the Accounts section and select " | * Go to the Accounts section and select " | ||
| {{ : | {{ : | ||
| - | {{ : | ||
| * It is now a good idea to keep two browser windows open with Admidio and Mailman3' | * It is now a good idea to keep two browser windows open with Admidio and Mailman3' | ||
| Line 77: | Line 82: | ||
| * Enter the **scopes** you desire in the Mailman3 config and make sure that Admidio' | * Enter the **scopes** you desire in the Mailman3 config and make sure that Admidio' | ||
| * In mailman, choose a provider_id, | * In mailman, choose a provider_id, | ||
| + | * Enabling PKCE for increased security cannot fully be done in the UI. The ''" | ||
| + | # PKCE must be configured here, not in the " | ||
| + | # Note: no " | ||
| + | # declaring it in both places makes allauth fail with multiple matching apps. | ||
| + | SOCIALACCOUNT_PROVIDERS = { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | </ | ||