Skip to content

Commit

Permalink
added auth to proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
miloswrath committed Sep 17, 2024
1 parent 6aacd9c commit 75e44e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ jobs:
python -m pip install --upgrade pip
- name: Run Quality Control Script
env:
TEASE: ${{ secrets.TEASE }}
run: |
sub=${{ needs.process_raw.outputs.sub }}
task=${{ needs.process_raw.outputs.task }}
Expand Down
14 changes: 10 additions & 4 deletions jatosAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@

def get_met():

tease = os.envron['TEASE']

proxies = {
'http': 'http://proxy.divms.uiowa.edu:8888',
'https': 'https://proxy.divms.uiowa.edu:8888',
'http': f'http:zjgilliam:{tease}//proxy.divms.uiowa.edu:8888',
'https': f'https://zjgilliam:{tease}proxy.divms.uiowa.edu:8888',
}


url = 'https://jatos.psychology.uiowa.edu/jatos/api/v1/results/metadata'
headers = {
'accept': 'application/json',
Expand Down Expand Up @@ -61,11 +64,14 @@ def get_met():

def get_data(study_result_ids):

tease = os.envron['TEASE']

proxies = {
'http': 'http://proxy.divms.uiowa.edu:8888',
'https': 'https://proxy.divms.uiowa.edu:8888',
'http': f'http:zjgilliam:{tease}//proxy.divms.uiowa.edu:8888',
'https': f'https://zjgilliam:{tease}proxy.divms.uiowa.edu:8888',
}


headers = {
'accept': 'application/octet-stream',
'Authorization': 'Bearer jap_5ThOJ14yf7z1EPEUpAoZYMWoETZcmJk305719',
Expand Down

0 comments on commit 75e44e0

Please sign in to comment.