mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-14 22:17:00 +00:00
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:
1 parent
7b516ade82
commit
74cbf68ffc
2 files changed
+31
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user