Skip to content

OpenID example configuration not working for Keycloak #174

@davidbergot

Description

@davidbergot

Hello,

I tried using the openid configuration example for Keycloak as documented here: https://vikunja.io/docs/openid-example-configurations/#keycloak

auth:
  openid:
    enabled: true
    providers:
      - name: Keycloak
        authurl: https://keycloak.mydomain.com/realms/<relam-name>
        logouturl: https://keycloak.mydomain.com/realms/<relam-name>/protocol/openid-connect/logout
        clientid: <vikunja-id>
        clientsecret: <vikunja secret>

But I was getting an error after starting the container when accessing the login page. The error said the following:

It looks like your openid configuration is in the wrong format. Please check the docs for the correct format.

After reading the documentation here: https://vikunja.io/docs/config-options/#0--auth, I made changes as following, which resolved the issue:

auth:
  openid:
    enabled: true
    providers:
+     keycloak:
-     - name: Keycloak
+       name: Keycloak
        authurl: https://keycloak.mydomain.com/realms/<relam-name>
        logouturl: https://keycloak.mydomain.com/realms/<relam-name>/protocol/openid-connect/logout
        clientid: <vikunja-id>
        clientsecret: <vikunja secret>

If you want, I can try to create the PR for that change (if you agree that it should be done)

I am not sure if there is anything specific in my system that prevents the example to work as expected, so I wonder if the example should be updated or not (here: https://github.com/go-vikunja/website/blob/main/src/content/docs/setup/openid-examples.mdoc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions