2626class MDFConnectClient :
2727 """The MDF Connect Client is the Python client to easily submit datasets to MDF Connect."""
2828 __app_name = "MDF_Connect_Client"
29- __login_services = ["connect" ]
29+ __client_id = "fcb9bf5a-4492-4e25-970f-510b69abc964"
30+ __login_services = ["mdf_connect" ]
3031 __allowed_authorizers = [
3132 globus_sdk .RefreshTokenAuthorizer ,
3233 globus_sdk .ClientCredentialsAuthorizer ,
@@ -76,9 +77,9 @@ def __init__(self, test=False, service_instance=None, authorizer=None):
7677 if any ([isinstance (authorizer , allowed ) for allowed in self .__allowed_authorizers ]):
7778 self .__authorizer = authorizer
7879 else :
79- self .__authorizer = mdf_toolbox .login ({ "app_name" : self .__app_name ,
80- "services" : self .__login_services
81- } ).get ("connect " )
80+ self .__authorizer = mdf_toolbox .login (services = self .__login_services ,
81+ client_id = self .__client_id ,
82+ app_name = self . __app_name ).get ("mdf_connect " )
8283 if not self .__authorizer :
8384 raise ValueError ("Unable to authenticate" )
8485
@@ -88,7 +89,7 @@ def logout(self):
8889 """
8990 self .reset_submission ()
9091 self .__authorizer = None
91- mdf_toolbox .logout ()
92+ mdf_toolbox .logout (client_id = self . __client_id , app_name = self . __app_name )
9293 return "Logged out. You must create a new MDF Connect Client to log back in."
9394
9495 # ***********************************************
0 commit comments