linux_server_manuals:dokuwiki_authentication_against_keycloak
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux_server_manuals:dokuwiki_authentication_against_keycloak [2018/01/31 15:28] – created ronney | linux_server_manuals:dokuwiki_authentication_against_keycloak [2018/01/31 16:39] (current) – [DokuWiki Config] ronney | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Dokuwiki authentication against Keycloak ====== | ====== Dokuwiki authentication against Keycloak ====== | ||
| - | plugin: oAuth | + | There exists basically no documentation about how to do that proberly, and also the error messages from the plugin, are not helping in any way... |
| + | |||
| + | So to get the whole thing working: | ||
| + | |||
| + | ===== Keycloak Config ===== | ||
| + | |||
| + | Add a new client with following settings: | ||
| + | **Client ID**: dokuwiki | ||
| + | **Client Protocol**: openid-connect | ||
| + | |||
| + | Then edit the new adapter settings | ||
| + | **Access Type**: confidential | ||
| + | **Valid Redirect URLS**: https:// | ||
| + | |||
| + | Save and then go to the newly appeard tab " | ||
| + | Set **Client Authenticator** to " | ||
| + | |||
| + | If you want dokuwiki to know about the groups keycloak assigns to the users, go to the tab " | ||
| + | Set following attributes: | ||
| + | **Name**: groups | ||
| + | **Mapper Type**: "group membership" | ||
| + | **Token Claim Name**: " | ||
| + | **Full group paths**: off | ||
| + | **Add to id token**: off | ||
| + | **Add to access token**: off | ||
| + | **Add to userinfo**: on | ||
| + | |||
| + | Then save. | ||
| + | |||
| + | ===== DokuWiki Config ===== | ||
| + | |||
| + | Install the plugin "oAuth". | ||
| + | <WRAP center round tip 60%> | ||
| + | * In the version " | ||
| + | * Users need to have an e-mail address set in keycloak. Otherwise Dokuwiki will refuse to let them authenticate. | ||
| + | </ | ||
| + | |||
| + | |||
| + | Then setup oAuth plugin (in gui or config file). Replace {realm-name} with the name of your realm. The urls are obviously pointing to your keycloak installation. If you've chosen a different keycloak-cliend-id than " | ||
| + | |||
| + | < | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | </ | ||
| - | adding group mapping: | ||
| - | Mapper Type: "group membership" | ||
| - | Token Claim Name: " | ||
| - | Full group paths: off | ||
| - | Add to id token: off | ||
| - | Add to access token: off | ||
| - | Add to userinfo: on | ||
linux_server_manuals/dokuwiki_authentication_against_keycloak.1517412533.txt.gz · Last modified: 2018/01/31 15:28 by ronney
