Loading crossbow/crossbowGlobus.py +2 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,8 @@ class crossbowGlobus(crossbowBase): """ manually saves refresh tokens to file """ client = globus_sdk.NativeAppAuthClient(client_id=client_id) client.oauth2_start_flow(refresh_tokens=True) token_response = client.oauth2_exchange_code_for_tokens(auth_code) tokens = token_response.by_resource_server self._save_tokens_to_file(token_file, tokens) Loading crossbow/crossbowOlcf.py +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ class crossbowOlcf(object): self.ssh.exec_command("export PATH=/ccs/home/iamshang/anaconda2/bin:/ccs/home/iamshang/anaconda2/lib/python2.7/site-packages:$PATH;\ export PYTHONPATH=/ccs/home/iamshang/crossbow/crossbow:$PYTHONPATH;\ cd crossbow/crossbow; python remote_auth.py") url = ssh_stdout.readlines() url = ssh_stdout.readlines()[0] time.sleep(1) print 'Please go to this URL and login: %s' % url Loading Loading
crossbow/crossbowGlobus.py +2 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,8 @@ class crossbowGlobus(crossbowBase): """ manually saves refresh tokens to file """ client = globus_sdk.NativeAppAuthClient(client_id=client_id) client.oauth2_start_flow(refresh_tokens=True) token_response = client.oauth2_exchange_code_for_tokens(auth_code) tokens = token_response.by_resource_server self._save_tokens_to_file(token_file, tokens) Loading
crossbow/crossbowOlcf.py +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ class crossbowOlcf(object): self.ssh.exec_command("export PATH=/ccs/home/iamshang/anaconda2/bin:/ccs/home/iamshang/anaconda2/lib/python2.7/site-packages:$PATH;\ export PYTHONPATH=/ccs/home/iamshang/crossbow/crossbow:$PYTHONPATH;\ cd crossbow/crossbow; python remote_auth.py") url = ssh_stdout.readlines() url = ssh_stdout.readlines()[0] time.sleep(1) print 'Please go to this URL and login: %s' % url Loading