The discussion revolves around the GitLab OmniAuth plugin for Discourse, detailing installation, configuration, and troubleshooting. The plugin allows users to authenticate via GitLab, with setup requiring a system application in GitLab and configuration in the Discourse container via app.yml. Users discuss issues such as account linking via email, username validation, and OAuth errors, including SSL certificate problems when using internal certificates. Some users report successful integration, while others face issues like failed logins due to email mismatches or invalid usernames. The plugin’s source is maintained by axil, with contributions from the community. Questions arise about compatibility with GitLab.com and newer Discourse versions. axil provides guidance on setup and fixes, while hellekin and mntbighker detail specific troubleshooting steps for authentication and SSL issues. ephemeraleclipse and RalfJung clarify account linking mechanics. Metin_Yorulmaz and arthur_ynh raise concerns about compatibility and functionality in recent versions. user12 asks about GitLab.com support.
I have a silly question: you mention /admin/applications/new, but my Gitlab instance returns 404 for this URL. Any idea what could cause this? (Omnibus 7.5.3) I couldn’t find anything relative to that problem here or in Gitlab’s forum (and I don’t have console access to troubleshoot it).
Hey I realize this is a very old topic now, but this plugin is really interesting. This is exactly what I’m looking for but I’m just curious about how the existing discourse users will be connected to Gitlab account.
For example, Gitlab’s OAuth allows a logged in user to connect their Google, Facebook, or Github accounts in their settings, is there something similar in this plugin for discourse to gitlab as well?
it’s not connecting the account, when I try to log in with gitlab it just redirects me to signup with my info filled out and tells me my username and email has already been taken
Got it fixed, made a merge request to the repo on gitlab, not sure if anyone still maintains that o_o
I have manually created accounts that I want to associate with a Gitlab account. Is there a way to do it?
The normal workflow is that an existing gitlab account visits the Discourse: then its discourse account is created. What I want to do is, as an admin or as the logged-in user, explicitly set the link between the gitlab and discourse accounts.
@RalfJung my experiment doesn’t match your description: I tried logging in with my gitlab account which uses the same username and email as the existing Discourse account.
But when I “login with gitlab”, I receive a proposal to create a new account named username1 instead of the existing username.
What you describe is what I would like to achieve. Moreover, I’d like to have a user UI to associate an account. This, it seems to me, is missing from the current Discourse.