Skip to content
Snippets Groups Projects
  1. Jan 07, 2021
  2. Jan 06, 2021
  3. Jan 05, 2021
  4. Jan 04, 2021
    • Richard van der Hoff's avatar
      Combine the SSO Redirect Servlets (#9015) · d2c616a4
      Richard van der Hoff authored
      * Implement CasHandler.handle_redirect_request
      
      ... to make it match OidcHandler and SamlHandler
      
      * Clean up interface for OidcHandler.handle_redirect_request
      
      Make it accept `client_redirect_url=None`.
      
      * Clean up interface for `SamlHandler.handle_redirect_request`
      
      ... bring it into line with CAS and OIDC by making it take a Request parameter,
      move the magic for `client_redirect_url` for UIA into the handler, and fix the
      return type to be a `str` rather than a `bytes`.
      
      * Define a common protocol for SSO auth provider impls
      
      * Give SsoIdentityProvider an ID and register them
      
      * Combine the SSO Redirect servlets
      
      Now that the SsoHandler knows about the identity providers, we can combine the
      various *RedirectServlets into a single implementation which delegates to the
      right IdP.
      
      * changelog
      Unverified
      d2c616a4
    • Patrick Cloke's avatar
  5. Jan 03, 2021
  6. Dec 30, 2020
    • Andrew Morgan's avatar
      Fix RoomDirectoryFederationTests and make them actually run (#8998) · 168ba00d
      Andrew Morgan authored
      The `RoomDirectoryFederationTests` tests were not being run unless explicitly called as an `__init__.py` file was not present in `tests/federation/transport/`. Thus the folder was not a python module, and `trial` did not look inside for any test cases to run. This was found while working on #6739.
      
      This PR adds a `__init__.py` and also fixes the test in a couple ways:
      
      - Switch to subclassing `unittest.FederatingHomeserverTestCase` instead, which sets up federation endpoints for us.
      - Supply a `federation_auth_origin` to `make_request` in order to more act like the request is coming from another server, instead of just an unauthenicated client requesting a federation endpoint.
      
      I found that the second point makes no difference to the test passing, but felt like the right thing to do if we're testing over federation.
      Unverified
      168ba00d
  7. Dec 29, 2020
  8. Dec 22, 2020
  9. Dec 18, 2020
  10. Dec 17, 2020
  11. Dec 16, 2020
  12. Dec 15, 2020
  13. Dec 14, 2020
  14. Dec 11, 2020
Loading