Configure GitLab sign-in in Astrolabe
You give Astrolabe the Application ID and the Secret of your GitLab application. Then the sign-in page offers GitLab.
You do it once, as an administrator.
Before you startβ
You need the Application ID and the Secret of the application: see Create the GitLab application.
π§ Install the GitLab providerβ
-
In the left sidebar, at the bottom, click Administration.
-
Under PLATFORM, click Authentication. The Providers tab opens.
-
On the GitLab card, click the switch at the top right of the card. The Configure GitLab window opens.
-
Fill in the form. Each ? next to a label explains the field.
Field What to enter Example Application ID The Application ID of your GitLab application 1a2b3cβ¦Secret The secret of that application 0123β¦GitLab URL Leave empty for gitlab.com. For your own GitLab: its full address with https://.https://gitlab.exemple.comCallback URL Leave empty: Astrolabe uses <Astrolabe address>/api/auth/gitlab/handler/frame. -
Click Install. The instance reloads.
When the page is back, the GitLab card shows its switch on, with a Configure button.
π₯ Import the membersβ
Signing in with GitLab only works for an account Astrolabe already knows. You import your GitLab groups and their members into the catalog. This needs a GitLab connection first.
-
In the left sidebar, under PLATFORM, click Company connections.
-
On the GitLab card, click Manage. Under Tokens, click Add a token (Β« Ajouter un jeton Β»).
-
Fill in the name, the GitLab instance host (for example
gitlab.exemple.com, withouthttps://) and the GitLab token. Click Test the connection (Β« Tester la connexion Β»), then Add (Β« Ajouter Β»). The instance reloads. -
Go to Administration βΊ Catalog. On the GitLab card, click Configure.
-
Tick Import GitLab groups and their members. Click Install. The instance reloads.
Then the groups and their members come into the catalog. See Import your GitLab groups.
These screens were checked up to the GitLab card of the catalog; the rest of this section was not checked on a live GitLab.
β That's it!
Next: Sign in with GitLab.
π Turn GitLab sign-in offβ
-
In Administration βΊ Authentication, click Configure on the GitLab card.
-
Click Uninstall. The instance reloads, without asking for confirmation.