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

Expect the remote exp to be defined in time zone UTC conform rfc (Fix… #1292

Merged
merged 4 commits into from
May 7, 2024

Conversation

wkleinheerenbrink
Copy link
Contributor

@wkleinheerenbrink wkleinheerenbrink commented Jun 22, 2023

Fixes #1291

Description of the Change

Interpret the EXP in access tokens as being UTC. Introduces an extra setting AUTHENTICATION_SERVER_EXP_TIME_ZONE to allow for the workaround in case of a remote authentication server that, wrongly, does not server the EXP in UTC.

Checklist

  • PR only contains one change (considered splitting up PR)
  • unit-test added
  • documentation updated
  • CHANGELOG.md updated (only for user relevant changes)
  • author name in AUTHORS

@dopry
Copy link
Contributor

dopry commented Oct 4, 2023

@wkleinheerenbrink could you rebase this PR to resolve the conflicts? I'll prioritize reviewing it in the next few days.

@makeevolution
Copy link

I have this issue too; can I continue this?

@n2ygk
Copy link
Member

n2ygk commented May 7, 2024

https://docs.python.org/3/library/zoneinfo.html was added in Python 3.9 so the 3.8 tests fail because functools.lru_cache fails to cache the Import exception.

setup.cfg Show resolved Hide resolved
Copy link
Member

@n2ygk n2ygk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. I've made a few fixes that were causing tests to fail for Python < 3.9

@n2ygk n2ygk merged commit 30efd79 into jazzband:master May 7, 2024
25 checks passed
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.

Wrong timezone is applied to expiry token
4 participants