Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:2.0:single_sign_on:oidc_joomla [2025/05/07 01:32] – created kainhofer | en:2.0:single_sign_on:oidc_joomla [2026/09/08 15:52] (current) – [Caveats and Things to Consider] kainhofer | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Throughout the document we will assume you have both Admidio and Joomla already set up properly at https:// | Throughout the document we will assume you have both Admidio and Joomla 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 Joomla. 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**. | + | Basically, one needs to enable OpenID Connect (OIDC). The Issuer URL should in most cases be left blank, which means Admidio' |
| - | The page https:// | + | |
| + | The page https:// | ||
| + | |||
| + | ===== Quick Overview ===== | ||
| - | ===== TL; | + | Setting up a client (OpenID " |
| + | - The client (RP, Joomla in our case) needs to be set up with the data about the OpenID Provider (OP). Typically this is done via the metadata provided in the discovery URL of the provider. Otherwise one has to manually paste the endpoint URLs of the OpenID provider. Since Admidio provides those URLs with copy buttons in the preferences screen, even the manual configuration is rather straightforward. | ||
| + | - 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. | ||
| - | Setting up a client (OpenID " | ||
| The concrete steps are: | The concrete steps are: | ||
| Line 24: | Line 29: | ||
| * 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 RP**, Copy the created Client Secret (you will later need to paste it indo Joomla' | * Enter the **ClientID from the RP**, Copy the created Client Secret (you will later need to paste it indo Joomla' | ||
| + | * 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. | ||
| * Optionally select (both in Admidio and the RP) which **profile fields should be mapped** to OpenID claims (attributes) and sent to the client, and configure which **group memberships** should be transmitted. | * Optionally select (both in Admidio and the RP) which **profile fields should be mapped** to OpenID claims (attributes) and sent to the client, and configure which **group memberships** should be transmitted. | ||
| Line 35: | Line 41: | ||
| {{ : | {{ : | ||
| - | This plugin is available as a **(very stripped-down) free version** and an (expensive) paid version that supports all OpenID Connect features. The free version only allows login to Joomla through Admidio. Features missing from the free version are: (1) automati | + | This plugin is available as a **(very stripped-down) free version** and an (expensive) paid version that supports all OpenID Connect features. The free version only allows login to Joomla through Admidio. Features missing from the free version are: |
| + | - automatic | ||
| + | - automatic plugin configuration from the discovery URL, | ||
| + | - group mapping for permissions in Joomla, | ||
| + | - attribute/ | ||
| + | - single-log out from all other apps connected through OpenID with Admidio, | ||
| + | - login to the administration backend with OpenID. | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| Line 58: | Line 70: | ||
| * The Client Secret should be a random string and will serve like a password. Admidio will create one and allow it to be copied to the client. Afterwards it is only stored as a hash in the database and not be recovered any more. However, one can create a new Client Secret in Admidio and copy that to the client' | * The Client Secret should be a random string and will serve like a password. Admidio will create one and allow it to be copied to the client. Afterwards it is only stored as a hash in the database and not be recovered any more. However, one can create a new Client Secret in Admidio and copy that to the client' | ||
| * The " | * The " | ||
| + | * The Joomla OIDC plugin does 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 make sure that the requirement checkbox is turned off. Otherwise you will get an error. | ||
| * Enter the **scopes** you desire in Joomla' | * Enter the **scopes** you desire in Joomla' | ||
| Line 105: | Line 118: | ||
| * The free version of the miniOrange plugin is very limited, allowing only login for existing joomla users (with their Admidio passwords at the admidio site). Each user must first be created manually in Joomla! | * The free version of the miniOrange plugin is very limited, allowing only login for existing joomla users (with their Admidio passwords at the admidio site). Each user must first be created manually in Joomla! | ||
| * The free version also does not allow transferring any group information from Admidio to Joomla, or other profile fields. | * The free version also does not allow transferring any group information from Admidio to Joomla, or other profile fields. | ||
| - | * Currently, there are no full-featured, | + | * Currently, there are no full-featured, |