Bug 2150955 - Flask OIDC is borked since the itsdangerous update
Summary: Flask OIDC is borked since the itsdangerous update
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-flask-oidc
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2138188
TreeView+ depends on / blocked
 
Reported: 2022-12-05 17:32 UTC by František Zatloukal
Modified: 2023-01-11 18:04 UTC (History)
3 users (show)

Fixed In Version: python-flask-oidc-1.5.0-1.fc38
Clone Of:
Environment:
Last Closed: 2023-01-11 18:04:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description František Zatloukal 2022-12-05 17:32:17 UTC
Description of problem:
Since the python-itsdangerous update to >= 2.1 in Fedora, python-flask-oidc is broken due to JWT functionality remove from itsdangerous. There is a PR ( https://github.com/puiterwijk/flask-oidc/pull/144 ) upstream that fixes the issue according to my testing.

Version-Release number of selected component (if applicable):
python-flask-oidc-1.4.0-15.fc37

How reproducible:
Always

Steps to Reproduce:
1. from flask_oidc import OpenIDConnect
2.
3.

Actual results:
E   ImportError: cannot import name 'JSONWebSignatureSerializer' from 'itsdangerous' (/usr/lib/python3.11/site-packages/itsdangerous/__init__.py)

Expected results:
No errors.

Additional info:

Comment 1 Gwyn Ciesla 2022-12-05 20:13:20 UTC
This patch doesn't cleanly apply to 1.4.0. If you have a version that does, let me know, otherwise I'll either work on backporting it when I have time, or hopefully it will be merged and released upstream.

Comment 2 František Zatloukal 2022-12-14 23:15:59 UTC
No, I've probably used master in my experiments before, but I'll handle the rebase and post it here, seems not to be too difficult from a first look at the diff. I'll also handle the pyJWT packaging if it's okay for you to backport the patch?

Comment 3 František Zatloukal 2023-01-11 18:04:52 UTC
Fixed by python-flask-oidc-1.5.0-1.fc38 , thanks!


Note You need to log in before you can comment on or make changes to this bug.