Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions src/mcp_atlassian/servers/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,10 @@ def _create_user_config_for_fetcher(

# For minimal OAuth config (user-provided tokens), use empty strings for client credentials
oauth_config_for_user = OAuthConfig(
client_id=global_oauth_cfg.client_id if global_oauth_cfg.client_id else "",
client_secret=global_oauth_cfg.client_secret
if global_oauth_cfg.client_secret
else "",
redirect_uri=global_oauth_cfg.redirect_uri
if global_oauth_cfg.redirect_uri
else "",
scope=global_oauth_cfg.scope if global_oauth_cfg.scope else "",
client_id=getattr(global_oauth_cfg, "client_id", ""),
client_secret=getattr(global_oauth_cfg, "client_secret", ""),
redirect_uri=getattr(global_oauth_cfg, "redirect_uri", ""),
scope=getattr(global_oauth_cfg, "scope", ""),
access_token=user_access_token,
refresh_token=None,
expires_at=None,
Expand Down
Loading