Skip to content
Snippets Groups Projects
Select Git revision
  • 23b7736adb61b7f11a44df61fd4249d25429fb0e
  • master default protected
  • claims-in-idtoke
  • jwt_encode_inconsistencies
  • recovery-code-pwhash
  • incremental-sync
  • redis-rate-limits
  • typehints
  • v1.2.x
  • v1.x.x
  • v1.1.x
  • feature_invite_validuntil_minmax
  • Dockerfile
  • v1.0.x
  • roles-recursive-cte
  • v2.3.1
  • v2.3.0
  • v2.2.0
  • v2.1.0
  • v2.0.1
  • v2.0.0
  • v1.2.0
  • v1.1.2
  • v1.1.1
  • v1.0.2
  • v1.1.0
  • v1.0.1
  • v1.0.0
  • v0.3.0
  • v0.2.0
  • v0.1.5
  • v0.1.4
  • v0.1.2
33 results

test_oauth2.py

Blame
  • Forked from uffd / uffd
    2 commits behind the upstream repository.
    • eNBeWe's avatar
      23b7736a
      Fix OIDC token endpoint crash on Debian Buster/Bullseye · 23b7736a
      eNBeWe authored and Julian's avatar Julian committed
      
      The return type of jwt.encode() changed from bytes in v1.x (Buster/Bullseye)
      to str in v2.x (Bookworm). This let json.dumps crash on Buster und Bullseye
      with "TypeError: Object of type bytes is not JSON serializable".
      
      Flask v1.x (Buster/Bullseye) automatically uses simplejson.dumps instead of
      json.dumps if it is installed. simplejson.dumps auto-converts bytes to str per
      default. simplejson also happend to be installed in our CI images. This
      prevented the bug from surfacing in CI tests. We removed simplejson from our
      CI images in an external change.
      
      Co-authored-by: default avatarJulian Rother <julian@cccv.de>
      23b7736a
      History
      Fix OIDC token endpoint crash on Debian Buster/Bullseye
      eNBeWe authored and Julian's avatar Julian committed
      
      The return type of jwt.encode() changed from bytes in v1.x (Buster/Bullseye)
      to str in v2.x (Bookworm). This let json.dumps crash on Buster und Bullseye
      with "TypeError: Object of type bytes is not JSON serializable".
      
      Flask v1.x (Buster/Bullseye) automatically uses simplejson.dumps instead of
      json.dumps if it is installed. simplejson.dumps auto-converts bytes to str per
      default. simplejson also happend to be installed in our CI images. This
      prevented the bug from surfacing in CI tests. We removed simplejson from our
      CI images in an external change.
      
      Co-authored-by: default avatarJulian Rother <julian@cccv.de>
    test_oauth2.py 8.36 KiB