File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/mcp_atlassian/servers Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -96,14 +96,10 @@ def _create_user_config_for_fetcher(
9696
9797 # For minimal OAuth config (user-provided tokens), use empty strings for client credentials
9898 oauth_config_for_user = OAuthConfig (
99- client_id = global_oauth_cfg .client_id if global_oauth_cfg .client_id else "" ,
100- client_secret = global_oauth_cfg .client_secret
101- if global_oauth_cfg .client_secret
102- else "" ,
103- redirect_uri = global_oauth_cfg .redirect_uri
104- if global_oauth_cfg .redirect_uri
105- else "" ,
106- scope = global_oauth_cfg .scope if global_oauth_cfg .scope else "" ,
99+ client_id = getattr (global_oauth_cfg , "client_id" , "" ),
100+ client_secret = getattr (global_oauth_cfg , "client_secret" , "" ),
101+ redirect_uri = getattr (global_oauth_cfg , "redirect_uri" , "" ),
102+ scope = getattr (global_oauth_cfg , "scope" , "" ),
107103 access_token = user_access_token ,
108104 refresh_token = None ,
109105 expires_at = None ,
You can’t perform that action at this time.
0 commit comments