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:saml_moodle [2025/05/16 23:58] – [Configuring the Service Provider (Moodle)] kainhofer | en:2.0:single_sign_on:saml_moodle [2026/09/05 00:31] (current) – [Quick Overview] kainhofer | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| Throughout the document we will assume you have both Admidio and Moodle already set up properly at https:// | Throughout the document we will assume you have both Admidio and Moodle already set up properly at https:// | ||
| - | As a first step, one needs to **configure Admidio to act as an SAML 2.0 Identity Provider** (IdP). This has to be done once and is not specific to any client. Please | + | |
| + | As a first step, one needs to **configure Admidio to act as an SAML 2.0 Identity Provider** (IdP). This has to be done once and is not specific to Moodle. Please | ||
| {{ : | {{ : | ||
| - | Basically, one (1) needs to **create a cryptographic key** to sign message | + | Basically, one needs to enable SAML 2.0 and **choose a unique EntityID**. |
| - | The page preferences | + | |
| + | The page https:// | ||
| ===== Quick Overview ===== | ===== Quick Overview ===== | ||
| - | Setting up a client (SAML " | + | Setting up a client (SAML " |
| * At the **Service Provider (SP)** - Moodle in our case - **install the extension** to support SAML login. | * At the **Service Provider (SP)** - Moodle in our case - **install the extension** to support SAML login. | ||
| - | * Configure it either with Admidio' | + | * Configure it either with Admidio' |
| * Choose whether sent messages **should be signed and/or encrypted** (these features require an additional private key and certificate for the SP!), and whether received messages are checked for signatures or encryption is expected. | * Choose whether sent messages **should be signed and/or encrypted** (these features require an additional private key and certificate for the SP!), and whether received messages are checked for signatures or encryption is expected. | ||
| * In **Admidio**, | * In **Admidio**, | ||
| - | * Choose an easily understood **label for the client** (only used in Admidio' | + | * Choose an easily understood **label for the client** (only used in Admidio' |
| * Enter the **ClientID from the SP**, as well as the ACS URL and the SLO response URL. These values must be provided by the client. | * Enter the **ClientID from the SP**, as well as the ACS URL and the SLO response URL. These values must be provided by the client. | ||
| * In Admidio, also choose whether sent messages should be **signed or encrypted**. The crypto key generated in the general SAML setup will be used. | * In Admidio, also choose whether sent messages should be **signed or encrypted**. The crypto key generated in the general SAML setup will be used. | ||
| Line 77: | Line 80: | ||
| Towards the end of the configuration screen, a whole section "Data mapping" | Towards the end of the configuration screen, a whole section "Data mapping" | ||
| - | {{ : | + | {{ : |
| The last section would allow Moodle to act as a SAML IdP, which is not relevant in our case. Enabling IDP means that Moodle' | The last section would allow Moodle to act as a SAML IdP, which is not relevant in our case. Enabling IDP means that Moodle' | ||
| - | {{ : | + | {{ : |
| Line 89: | Line 92: | ||
| Admidio and Moodle should now be set up to use Admidio for logging in to Moodle. The SAML plugin even provides a way to test the plugin configuration: | Admidio and Moodle should now be set up to use Admidio for logging in to Moodle. The SAML plugin even provides a way to test the plugin configuration: | ||
| - | {{ : | + | {{ : |
| The test settings page allows a test login from Moodle to Admidio without influencing the current session Moodle. If login is successful, the profile data provided by Admidio is displayed. | The test settings page allows a test login from Moodle to Admidio without influencing the current session Moodle. If login is successful, the profile data provided by Admidio is displayed. | ||
| - | {{: | + | |
| + | {{: | ||
| Once, this dry run is successful, one can attempt a real login through SAML. | Once, this dry run is successful, one can attempt a real login through SAML. | ||
| Line 98: | Line 102: | ||
| If you log out of Moodle (or open Moodle in an incognito browser window) and go to the Moodle admin location, you should see the login screen with the choice of logging in with password or via SAML. | If you log out of Moodle (or open Moodle in an incognito browser window) and go to the Moodle admin location, you should see the login screen with the choice of logging in with password or via SAML. | ||
| + | |||
| {{: | {{: | ||
| After choosing SAML login and loggin in with a user from Admidio, you should be logged in to Moodle. | After choosing SAML login and loggin in with a user from Admidio, you should be logged in to Moodle. | ||
| - | {{ : | + | {{ : |
| Line 108: | Line 113: | ||
| ==== Caveats and Things to Consider ==== | ==== Caveats and Things to Consider ==== | ||
| - | * Transferring the country profile field from Admidio into Moodle' | + | * Transferring the country profile field from Admidio into Moodle' |
| - | * If you have user accounts from different backends (e.g. local accounts, OpenID Connect login, SAML login) and an account for a user was already created, Moodle tries to match accounts by username (the field selected in the plugin config). However, if the other account has the same email address, but a different user ID through the OIDC or local backend, Moodle will try to create a new account with the SAML user ID, but fails since another account with the same email already exists.{{ : | + | * If you have user accounts from different backends (e.g. local accounts, OpenID Connect login, SAML login) and an account for a user was already created, Moodle tries to match accounts by username (the field selected in the plugin config). However, if the other account has the same email address, but a different user ID through the OIDC or local backend, Moodle will try to create a new account with the SAML user ID, but fails since another account with the same email already exists.{{ : |