scailable / sclblpy

Python package for Scailable uploads
MIT License
19 stars 1 forks source link

Test with new JWT login #35

Closed MKaptein closed 4 years ago

MKaptein commented 4 years ago

We should test / check whether everything still works smoothly after the cookie overhaul.

MKaptein commented 4 years ago

Test all new functionality of the package thoroughly on the new live stack before pushing. After push this version can go to pypi.

MKaptein commented 4 years ago

JWT refresh from the package currently does not work:

JWT refresh server error: Invalid bearer header.
MKaptein commented 4 years ago

Hmmm...

This seems to be fixed by adding:

            'Authorization': glob.JWT_TOKEN
            'Authorization': 'Bearer ' + glob.JWT_TOKEN

to the headers. However, only to the GET requests, not to the POST? I presume this is caused by the 'preflight()' in the user-manager; when this is called a bearer heading is needed; if not than it is not.

We should discuss why the posts do not have this preflight though...

MKaptein commented 4 years ago

Takes a day but works