GitHub Enterprise (Pro)
DefectDojo Pro supports login via GitHub Enterprise Server over OAuth 2.0. Open-source DefectDojo does not include SSO — see Authorized Users for open-source access control.
Callback URL
GitHub Enterprise needs the exact redirect URI DefectDojo listens on after a user authenticates. It is your DefectDojo base URL followed by /complete/github-enterprise/:
https://<your-instance>.cloud.defectdojo.com/complete/github-enterprise/On-premise, replace the host with your own DefectDojo base URL, keeping the /complete/github-enterprise/ path. Register it as the Authorization callback URL on the OAuth app.
Prerequisites
Complete the following steps in your GitHub Enterprise Server before configuring DefectDojo:
Create a new OAuth App (Settings > Developer settings > OAuth Apps > New OAuth App).
Choose a name (e.g.
DefectDojo) and set the Homepage URL to your DefectDojo base URL.Set the Authorization callback URL to the Callback URL above.
Register the app, then note the Client ID and generate and note a Client secret.
Configuration
In DefectDojo, go to Connect > Authorization > Providers, select GitHub Enterprise, and fill in the form:
- GitHub Enterprise OAuth Key — enter your Client ID.
- GitHub Enterprise OAuth Secret — enter your Client secret. After you save it, the secret is never shown again. Leave the field blank to keep it, and enter it again only if you change the client ID or either GitHub Enterprise URL.
- GitHub Enterprise URL — your GitHub Enterprise base URL, e.g.
https://github.yourcompany.com/. - GitHub Enterprise API URL — your GitHub Enterprise API URL, e.g.
https://github.yourcompany.com/api/v3/.
Both URL fields must be valid URLs; DefectDojo rejects the form otherwise. Check Enable GitHub Enterprise OAuth and submit. A Login With GitHub button will appear on the login page.
Use Validate Config at any point to check the settings without saving them. It confirms the settings are complete, checks that the GitHub Enterprise URL and API URL are reachable, and echoes the exact redirect URI to register at GitHub.
First login and default access
A user provisioned without any group membership lands with no permissions. To give every new SSO user a baseline, set a Default group and Default group role on the System Settings page — see Default access for SSO-provisioned users. GitHub Enterprise login does not synchronize GitHub organizations or teams into DefectDojo groups.
Troubleshooting
The form is rejected on save. The URL or API URL is not a valid URL. Include the scheme (https://) and, for the API URL, the /api/v3/ path.
Login fails immediately after the GitHub prompt. A callback-URL mismatch — confirm the OAuth app’s Authorization callback URL is exactly the Callback URL.
Start with Diagnostics. Rejected sign-ins are recorded under Connect > Diagnostics with the reason each was refused.