Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Replace pyjwt with authlib in org.matrix.login.jwt #13011

Merged

Commits on Jun 9, 2022

  1. Replaced pyjwt with authlib

    aytchell committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    074cdf7 View commit details
    Browse the repository at this point in the history
  2. Fixed unit tests

    Due to the move from PyJWT to authlib the error messages have changed.
    Instead of mapping messages in the code just to please the tests I
    changed the expücted error messages in the unit tests.
    aytchell committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    338ae35 View commit details
    Browse the repository at this point in the history
  3. Added a helper script to create JWTs for development

    Seems like PyJWT provides a script to create JWTs from the command line.
    Authlib does not provide such a script so I added this tiny script as a
    replacement.
    
    It doesn't parse parameters nor writes files but since this feature is
    only required by developer while doing some local tests I'd say that's
    OK.
    aytchell committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    13bccbb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3891e0a View commit details
    Browse the repository at this point in the history
  5. Added changelog entry

    Signed-off-by: Hannes Lerchl <hannes.lerchl@googlemail.com>
    aytchell committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    5a7e7b0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    629ef41 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2022

  1. Moved import statements for authlib

    In case a server hoster doesn't use oidc or jwt there should be no need
    to install authlib. So for such cases the imports need to 'come later'.
    aytchell committed Jun 10, 2022
    Configuration menu
    Copy the full SHA
    8e78b79 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2022

  1. Removed pyjwt frm pyproject.toml

    Updated poetry.lock file with --no-update
    
    Signed-off-by: Hannes Lerchl <hannes.lerchl@googlemail.com>
    aytchell committed Jun 11, 2022
    Configuration menu
    Copy the full SHA
    b4e56a1 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2022

  1. Applied changes from review findings

    Review performed by DMRobertson
    
    Signed-off-by: Hannes Lerchl <hannes.lerchl@googlemail.com>
    aytchell committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    a650138 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    470dc0b View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2022

  1. Re-added a check for installed dependencies

    The pyjwt based version of the jwt login flow contained a check (like
    this) for PyJWT. Since authlib is an optional dependency I add this
    check when `jwt_config` is configured.
    aytchell committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    382d02f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8aa6a11 View commit details
    Browse the repository at this point in the history
  3. Two more fixes

    aytchell committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    395997e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    81c525c View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'origin/develop' into aytchell/replace_p…

    …yjwt_with_authlib
    David Robertson committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    0039fe7 View commit details
    Browse the repository at this point in the history