Aller au contenu
EN English versionDemander une démo

Let members link their GitHub account

For an organisation administrator. Procedure connector.forge_account.github-oauth, version 1, reviewed 2026-11-12 against the vendor’s own pages. It applies to the connector type forge_account/github-oauth.

It ships with the platform. In the console it opens with How to set this up, beside the form that adds the connector and on the connector’s settings.

Addresses are written <api_url>, <public_url> and <org> here: the console shows the same text with your deployment’s own.

  • An organisation owner at GitHub (or a person who may create an OAuth app for it).
  • What it is for: each member signs in to GitHub once from My account and the platform records their GitHub numeric user id as a verified link. The id is what a signed GitHub comment carries when a member pauses, resumes or stops a work item from the issue.
  • The platform reads the member’s user once, at the link, and keeps neither the access token nor anything else than the id, the login, the avatar and the profile address.
  1. Your organisation’s settings, Developer settings, OAuth Apps, New OAuth App.
  2. Homepage URL: <public_url>. Authorization callback URL: <api_url>/api/v1/auth/linked-accounts/callback.
  3. Register application, copy the Client ID, then Generate a new client secret and copy it: it is shown once.

A GitHub App’s client id and secret work too (its user authorization uses the same endpoints and the same callback URL). Give that App no repository or organisation permission: the platform only reads /user with it. Do not reuse the App the platform uses for repositories.

The platform asks for the read:user scope and nothing else: it can read the member’s public profile, not their repositories, organisations or e-mail addresses. With a GitHub App the scope is ignored and the App’s own permissions apply: keep them empty.

  1. Administration, Connectors, Declare: capability Member accounts, type GitHub sign-in.
  2. base_url: leave https://github.com, or your GitHub Enterprise Server’s address.
  3. client_id: the Client ID. client_secret: the client secret, in the password field.
  4. Tick open the hosts in the egress allowlist (or open github.com and api.github.com yourself).

Open My account, Linked accounts, Link next to GitHub. After signing in at GitHub you come back to the page and the account shows with a Verified badge and your GitHub login.

  • link_error=forge_refused and GitHub showed “The redirect_uri is not associated with this application”: the callback URL at GitHub differs from <api_url>/api/v1/auth/linked-accounts/callback.
  • link_error=forge_refused right after consenting: the client secret is wrong or was regenerated.
  • link_error=instance_unusable: the connector’s secret cannot be read; type it again.
  • link_error=taken: that GitHub account is already linked to another member of the organisation; an administrator removes the other link first.
  • A timeout, or egress_refused in the logs: open github.com and api.github.com in the egress allowlist.
Field What to put in it
base_url https://github.com, or your GitHub Enterprise Server’s address
client_id the OAuth app’s Client ID
client_secret a client secret of the OAuth app, typed once

Hosts the platform must be allowed to reach:

  • github.com
  • api.github.com