[Fix]: Plumb provider tokens to runtime (#7247)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
This commit is contained in:
Rohit Malhotra
2025-03-20 18:43:27 -04:00
committed by GitHub
parent 6f204fd557
commit 41efa100f0
16 changed files with 686 additions and 188 deletions

View File

@@ -22,6 +22,7 @@ class GitLabService(GitService):
def __init__(
self,
user_id: str | None = None,
external_auth_id: str | None = None,
external_auth_token: SecretStr | None = None,
token: SecretStr | None = None,
external_token_manager: bool = False,
@@ -46,7 +47,7 @@ class GitLabService(GitService):
def _has_token_expired(self, status_code: int) -> bool:
return status_code == 401
async def get_latest_token(self) -> SecretStr:
async def get_latest_token(self) -> SecretStr | None:
return self.token
async def _fetch_data(