mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[GH-ISSUE #118] Cannot pass per-source token for GitHub or GitLab #71
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/oikb#71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Fyrlex on GitHub (Sep 11, 2026).
Original GitHub issue: https://github.com/open-webui/oikb/issues/118
Only GITHUB_TOKEN and GITLAB_TOKEN can be used for their respective sources, preventing per-source authentication tokens.
GitHub and GitLab have token params in their constructors, but no tokens are passed to them in the cli.py file.
A fix would be to extract the token from the oikb.yaml source entries and pass it to the _resolve_connector function so it can be passed to the GitHub and GitLab connectors.
@Fyrlex commented on GitHub (Sep 11, 2026):
Seems that this is an issue with SharePoint too. The resolve connector is based on the source.startswith() to determine the proper class to use, but the classes are built to accept more params that the resolver does not provide. More specifically, the connector resolver only tkaes a few params to identify the path, but not authentication methods like the SharePoint client id, secret, and tenant.
Perhaps the resolver needs to be remade or be optimally designed to also pass all kinds of authentication methods.