docs: Fix keycloak guide

Since Keycloak version 20.0.0 it's needed to explicitly request the
openid scope. Since we define it anyway, why not request all the scopes
hedgedoc needs to function.

This patch should help to fix people's HedgeDoc deployments.

References:
https://github.com/keycloak/keycloak/pull/14237
https://shivering-isles.com/fixing-hedgedoc-profile-info-keycloak-20

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
Sheogorath 2022-11-04 20:24:37 +01:00 committed by Philip Molares
parent 81ca171895
commit f98a96eaa6

View file

@ -40,6 +40,7 @@ CMD_OAUTH2_AUTHORIZATION_URL=https://keycloak.example.com/auth/realms/your-realm
CMD_OAUTH2_CLIENT_ID=<your client ID> CMD_OAUTH2_CLIENT_ID=<your client ID>
CMD_OAUTH2_CLIENT_SECRET=<your client secret, which you can find under the Credentials tab for your client> CMD_OAUTH2_CLIENT_SECRET=<your client secret, which you can find under the Credentials tab for your client>
CMD_OAUTH2_PROVIDERNAME=Keycloak CMD_OAUTH2_PROVIDERNAME=Keycloak
CMD_OAUTH2_SCOPE="openid email profile"
CMD_DOMAIN=<hedgedoc.example.com> CMD_DOMAIN=<hedgedoc.example.com>
CMD_PROTOCOL_USESSL=true CMD_PROTOCOL_USESSL=true
CMD_URL_ADDPORT=false CMD_URL_ADDPORT=false