Resolution
When your self-hosted Octopus server is not reachable from the internet, the instance's public signing keys must be hosted externally so the GitHub service can verify your instance's identity.
Symptom
Unable to authorize GitHub App. For help resolving the issue, see our Documentation
Scope: when this is the right article
This article applies to Octopus 2026.2 and later for self-hosted instances. If you receive a GitHub App authorization failed error when attempting to create a new GitHub App connection in a self-hosted Octopus instance.
Cause
This error typically indicates that the Octopus GitHub service cannot verify the identity of the Octopus instance. If the Octopus server is not reachable from the internet, additional configuration is required to make the public signing key available.
Diagnosis and fix
Diagnosis:
- On the
GitHub Connectionspage, press theAuthorize the Octopus Deploy GtHub Appbutton. If you receive aGitHub App authorization failederror instead of being directed to GitHub, further troubleshooting is needed. - Verify whether the OIDC discovery endpoints for your Octopus server are reachable from the internet.
- https://octopusserverurl/.well-known/openid-configuration
- Example test command:
curl -i https://<octopus server url>/.well-known/openid-configuration
Fix:
- If your instance cannot be verified due to lack of internet access, you will need to configure external signing key hosting. Follow the documentation for details on externally hosted signing keys.
- Externally hosted public keys
- Verify the
OIDC Issuer URLconfigured in Octopus is accessible outside of your Octopus server's network. - Example test command:
curl -i https://<issuer-url>/.well-known/openid-configuration
Verify
- Attempt to authorize the Octopus GitHub App again, and you should be redirected to GitHub to complete the installation and authorization process.