Skip to content

tea-release.2.0.3: Improved bearer token handling

Latest
Compare
Choose a tag to compare
@reweeden reweeden released this 22 Jan 19:42
· 2 commits to devel since this release
964e98d

This release updates the backend handling of EDL bearer tokens to reduce the load created on EDL to verify the tokens and fetch the user profile. Best practice when using bearer tokens is still to use a client that can capture session cookies and re-use them on subsequent requests as this will have by far the best performance, however, even if clients are behaving badly, TEA will now better guard against causing degraded performance in the EDL infrastructure.

Python example using bearer tokens and session re-use:

import requests

URLS_TO_DOWNLOAD = [...]
EDL_BEARER_TOKEN = ...

with requests.Session() as s:
    for url in URLS_TO_DOWNLOAD:
        response = s.get(
            url, 
            headers={"Authorization": f"Bearer {EDL_BEARER_TOKEN}"},
        )
        # Write response to file, etc...

What's Changed

Full Changelog: tea-release.2.0.2...tea-release.2.0.3