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_dokuwiki [2026/09/08 07:53] – [Setting up the Client (SP) in Admidio] kainhofer | en:2.0:single_sign_on:oidc_dokuwiki [2026/09/10 14:09] (current) – [Quick Overview] kainhofer | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| Basically, one needs to enable OpenID Connect (OIDC). The Issuer URL should in most cases be left blank, which means Admidio' | 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 ===== | ===== Quick Overview ===== | ||
| - | Setting up a client (OpenID " | + | Setting up a client (OpenID " |
| + | - The client (RP, DokuWiki 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. | ||
| The concrete steps are: | The concrete steps are: | ||
| Line 26: | Line 28: | ||
| * 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 RP**, Copy the created Client Secret (you will later need to paste it indo DokuWiki' | + | * Enter the **ClientID from the RP**, copy the created Client Secret (you will later need to paste it into DokuWiki' |
| * 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. | * 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 38: | Line 40: | ||
| {{ : | {{ : | ||
| - | After installation it can be configured in DokuWiki' | + | After installation it can be configured in DokuWiki' |
| - | + | {{ : | |
| - | First, one has to copy over the OpenID endpoint URLs from Admidio' | + | |
| - | {{ : | + | |
| ==== Setting up the Client (SP) in Admidio ==== | ==== Setting up the Client (SP) in Admidio ==== | ||
| Line 50: | Line 50: | ||
| {{ : | {{ : | ||
| + | The first step is to copy over the endpoint URLs from Admidio into the DokuWiki configuration. DokuWiki does not support automatic discovery, so the individual URLs (hidden by default in a foldable section at the top) must be copied individually: | ||
| + | {{ : | ||
| + | The remaining settings are individual to the DokuWiki installation: | ||
| - The **Client Name** is the label of the client in Admidio' | - The **Client Name** is the label of the client in Admidio' | ||
| - The **" | - The **" | ||