Commit 70a7dc99 authored by Gao, Shang's avatar Gao, Shang
Browse files

testing remote auth script

parent 5d845875
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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