Configure GitHub sign-in in Astrolabe
You give Astrolabe the Client ID and Client Secret of your GitHub OAuth app. Then the sign-in page offers Continue with GitHub.
You do it once, as an administrator.
Before you startβ
You need the Client ID and Client Secret of the app: see Create the OAuth app in GitHub.
π§ Install the GitHub providerβ
-
In the left sidebar, at the bottom, click Administration.
-
Under PLATFORM, click Authentication. The Providers tab opens.
-
On the GitHub card, click the switch at the top right of the card. The Configure GitHub window opens.
-
Fill in the form. Each ? next to a label explains the field.
Field What to enter Example Client ID The Client ID of your OAuth app Ov23liβ¦Client Secret The client secret of the app 0123β¦Entreprise Instance URL Leave empty. For GitHub Enterprise only: its full address with https://.https://github.example.comCallback URL Leave empty: Astrolabe uses <Astrolabe address>/api/auth/github/handler/frame. -
Click Install. The instance reloads.
When the page is back, the GitHub card shows its switch on, with a Configure button. A warning
above the cards says Nobody can sign in with GitHub yet: an account must be in the catalog first.
until the next section is done.
π₯ Import the membersβ
Signing in with GitHub only works for an account Astrolabe already knows. You import the members of your GitHub organization into the catalog.
-
In the warning, click Open Catalog βΊ GitHub. The Catalog page opens.
-
On the GitHub card, click Configure. The Configure GitHub window opens.
-
Fill in Organization with the name of your GitHub organization.
-
Tick Import GitHub members and teams.
-
Click Install. The instance reloads.
-
Go back to Administration βΊ Authentication: the warning is gone.
Steps 3 to 6 were not checked on an instance connected to a real GitHub organization.
The token of your GitHub connection needs the read:org and read:user scopes. The other fields are described in
Import your GitHub repositories.
β That's it!
Next: Sign in with GitHub.
π Turn GitHub sign-in offβ
-
In Administration βΊ Authentication, click Configure on the GitHub card.
-
Click Uninstall. The instance reloads, without asking for confirmation.
The Continue with GitHub button leaves the sign-in page.