Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: forbidden and unauthorized errors in token auth #791

Merged
merged 4 commits into from Aug 24, 2023
Merged

Conversation

jlahovnik
Copy link
Collaborator

  • retries are added to the request to fetch the token in case certain errors occur (mainly intended for random unauthorized errors from wekeo)
  • the token is now correctly updated in the authorization header when the previous token is expired and a new token is returned by the provider

retries are added to the request to fetch the token and the token is now correctly updated in the header
@github-actions
Copy link
Contributor

github-actions bot commented Aug 23, 2023

Test Results

       4 files  ±0         4 suites  ±0   5m 18s ⏱️ -28s
   403 tests +2     401 ✔️ +2    2 💤 ±0  0 ±0 
1 612 runs  +8  1 552 ✔️ +8  60 💤 ±0  0 ±0 

Results for commit 6c4f9d0. ± Comparison against base commit f2ac36b.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 23, 2023

Code Coverage (Ubuntu)

File Coverage
All files 81%

Minimum allowed coverage is 70%

Generated by 🐒 cobertura-action against 6c4f9d0

@github-actions
Copy link
Contributor

github-actions bot commented Aug 23, 2023

Code Coverage (Windows)

File Coverage
All files 76%

Minimum allowed coverage is 70%

Generated by 🐒 cobertura-action against 6c4f9d0

eodag/plugins/authentication/token.py Outdated Show resolved Hide resolved
@sbrunato sbrunato merged commit caff0bc into develop Aug 24, 2023
12 checks passed
@sbrunato sbrunato deleted the auth_problems branch August 24, 2023 15:26
@sbrunato sbrunato added this to the 2.11.0 milestone Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants