diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-12-14 11:38:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 11:38:50 +0000 |
commit | 895e04319ba457a855207b8bb804f7360a258464 (patch) | |
tree | bb2c6be9e022d09eb31a7e964fa691b4fef856f2 /changelog.d/8911.feature | |
parent | Allow spam-checker modules to be provide async methods. (#8890) (diff) | |
download | synapse-895e04319ba457a855207b8bb804f7360a258464.tar.xz |
Preparatory refactoring of the OidcHandlerTestCase (#8911)
* Remove references to handler._auth_handler (and replace them with hs.get_auth_handler) * Factor out a utility function for building Requests * Remove mocks of `OidcHandler._map_userinfo_to_user` This method is going away, so mocking it out is no longer a valid approach. Instead, we mock out lower-level methods (eg _remote_id_from_userinfo), or simply allow the regular implementation to proceed and update the expectations accordingly. * Remove references to `OidcHandler._map_userinfo_to_user` from tests This method is going away, so we can no longer use it as a test point. Instead we build mock "callback" requests which we pass into `handle_oidc_callback`, and verify correct behaviour by mocking out `AuthHandler.complete_sso_login`.
Diffstat (limited to 'changelog.d/8911.feature')
-rw-r--r-- | changelog.d/8911.feature | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/8911.feature b/changelog.d/8911.feature new file mode 100644 index 0000000000..d450ef4998 --- /dev/null +++ b/changelog.d/8911.feature @@ -0,0 +1 @@ +Add support for allowing users to pick their own user ID during a single-sign-on login. |