Show GitHub's optional GitHub App settings in Admin > Connectors

The admin connectors API lists the settings that add Sign in with GitHub
and whether they are complete, next to the required settings (none for
GitHub, which works with tokens alone).
This commit is contained in:
arc53-machine committed 2026-09-29 10:41:03 +01:00
1 parent 7b516ade82
commit 74cbf68ffc
2 files changed
+31

No files matched your search

+7
View File
@@ -78,6 +78,13 @@ class AdminConnectorsResource(Resource):
{"name": name, "set": bool(getattr(settings, name, None))}
for name in definition.required_settings
],
# Optional: they add a second sign-in (GitHub's App) to a
# connector that already works without them.
"oauth_settings": [
{"name": name, "set": bool(getattr(settings, name, None))}
for name in definition.oauth_settings
],
"oauth_configured": definition.oauth_configured,
"connection_count": counts.get(definition.key, 0),
"docs_url": definition.docs_url,
"mcp_url": definition.mcp_url,