Skip to content

Commit

Permalink
Added Auth cookies fix to upload_portal.py script (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergio Muriana <sergiom@ccbill.com>
  • Loading branch information
smuriana and Sergio Muriana authored Aug 2, 2024
1 parent 4963371 commit a9416d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions automation/upload_portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def main():
# Add Auth Header by default to all requests.
REQUEST.headers.update({'Authorization': 'Bearer {}'.format(access_token), 'Content-Type': 'application/json'})

# Auth cookies Fix: copied from upload_portal_documentation.py:206
REQUEST.cookies.update({'access_token': access_token})

# Load portal configuration ... add or update it.
data = open(config_file, 'r', encoding='utf8').read()
config = json.loads(data)
Expand Down

0 comments on commit a9416d9

Please sign in to comment.