Join the conversation

Sign in to join this conversation, and others like it, in the communities you care about.

Wekan

Wekan is an open-source kanban board (Trello like) which allows a card-based task and to-do management.

Wekan / Bugs

Wekan OIDC login with Gitlab

Wekan OIDC login with Gitlab

Wekan / Bugs · September 17, 2023 at 7:08am (Edited 7 months ago)

I hope I can change the login in method in Wekan from password to OIDC. I use Gitlab as my Oauth provider, and I already set all the things up as you can see in the picture below. However, I still cannot see the OIDC login buttom when I open the app. If I go to http://localhost:3000/_oauth/oidc the error below will occur: (oauth_server.js:406) Error in OAuth Server: Service not configured

Could someone please give me some hint about this error? I have stuck in here for few weeks...

  • My Gitlab settings
post1.png
  • Settings in docker-compose.yml
    • OAUTH2_ENABLED=true
      • OAUTH2_LOGIN_STYLE=redirect
      • OAUTH2_CLIENT_ID=xxx
      • OAUTH2_SECRET=xxx
      • OAUTH2_SERVER_URL=xxx
      • OAUTH2_AUTH_ENDPOINT=/oauth/authorize
      • OAUTH2_USERINFO_ENDPOINT=/oauth/userinfo
      • OAUTH2_TOKEN_ENDPOINT=/oauth/token
      • OAUTH2_ID_TOKEN_WHITELIST_FIELDS=""
      • OAUTH2_REQUEST_PERMISSIONS=openid profile email
      • OAUTH2_ID_MAP=sub
      • OAUTH2_USERNAME_MAP=nickname
      • OAUTH2_FULLNAME_MAP=name
      • OAUTH2_EMAIL_MAP=email

I really appreciate any sharing and help!


September 17, 2023 at 1:53pm

It maybe needs also OAUTH2_USERNAME_MAP=email

    • reply
    • like

    What version of WeKan you use?

      • reply
      • like

      Also, I would recommend that in future, you add issues to https://github.com/wekan/wekan/issues

        • reply
        • like

        That if official community support

          • reply
          • like

          where are also other WeKan contributors that fix stuff

            • reply
            • like

            Non-official forums like this do not have link at WeKan website https://wekan.github.io

              • reply
              • like

              September 17, 2023 at 5:12pm

              Non-official forums like this do not have link at WeKan website https://wekan.github.io

                I see. I really appreciate your suggestion, and I will try to add issues to there next time.

                  • reply
                  • like

                  Thanks for your advice, I fixed the previous problem. However, when I click the "Sign in with OIDC" buttom, the popup website shows 404. Do you have any idea what's going on?

                    • reply
                    • like

                    My gitlab setting for Callback URL is http://localhost:3000/_oauth/oidc and I also change the OAUTH2_SERVER_URL variable in wekan to my gitlab's path. I really appreciate your help!

                      • reply
                      • like