Skip to content
Snippets Groups Projects
  1. Jan 18, 2021
  2. Jan 15, 2021
    • Richard van der Hoff's avatar
      Fix test failure due to bad merge · b5dea870
      Richard van der Hoff authored
      0dd2649c (#9112) changed the signature of `auth_via_oidc`. Meanwhile,
      26d10331 (#9091) introduced a new test which relied on the old signature of
      `auth_via_oidc`. The two branches were never tested together until they landed
      in develop.
      b5dea870
    • Erik Johnston's avatar
      Make chain cover index bg update go faster (#9124) · 350d9923
      Erik Johnston authored
      We do this by allowing a single iteration to process multiple rooms at a
      time, as there are often a lot of really tiny rooms, which can massively
      slow things down.
      350d9923
    • Richard van der Hoff's avatar
      Land support for multiple OIDC providers (#9110) · 9de6b941
      Richard van der Hoff authored
      This is the final step for supporting multiple OIDC providers concurrently.
      
      First of all, we reorganise the config so that you can specify a list of OIDC providers, instead of a single one. Before:
      
          oidc_config:
             enabled: true
             issuer: "https://oidc_provider"
             # etc
      
      After:
      
          oidc_providers:
           - idp_id: prov1
             issuer: "https://oidc_provider"
      
           - idp_id: prov2
             issuer: "https://another_oidc_provider"
      
      The old format is still grandfathered in.
      
      With that done, it's then simply a matter of having OidcHandler instantiate a new OidcProvider for each configured provider.
      9de6b941
    • Patrick Cloke's avatar
      Add an admin API endpoint to protect media. (#9086) · 3e4cdfe5
      Patrick Cloke authored
      Protecting media stops it from being quarantined when
      e.g. all media in a room is quarantined. This is useful
      for sticker packs and other media that is uploaded by
      server administrators, but used by many people.
      3e4cdfe5
    • Patrick Cloke's avatar
      Avoid raising the body exceeded error multiple times. (#9108) · 74dd9060
      Patrick Cloke authored
      Previously this code generated unreferenced `Deferred` instances
      which caused "Unhandled Deferreds" errors to appear in error
      situations.
      74dd9060
    • Richard van der Hoff's avatar
      Improve UsernamePickerTestCase (#9112) · 0dd2649c
      Richard van der Hoff authored
      * make the OIDC bits of the test work at a higher level - via the REST api instead of poking the OIDCHandler directly.
      * Move it to test_login.py, where I think it fits better.
      0dd2649c
    • Richard van der Hoff's avatar
      Store an IdP ID in the OIDC session (#9109) · 4575ad0b
      Richard van der Hoff authored
      Again in preparation for handling more than one OIDC provider, add a new caveat to the macaroon used as an OIDC session cookie, which remembers which OIDC provider we are talking to. In future, when we get a callback, we'll need it to make sure we talk to the right IdP.
      
      As part of this, I'm adding an idp_id and idp_name field to the OIDC configuration object. They aren't yet documented, and we'll just use the old values by default.
      4575ad0b
  3. Jan 14, 2021
  4. Jan 13, 2021
  5. Jan 12, 2021
  6. Jan 11, 2021
  7. Jan 08, 2021
  8. Jan 07, 2021
  9. Jan 06, 2021
  10. Jan 05, 2021
  11. 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
      d2c616a4
    • Patrick Cloke's avatar
      1c9a8505
  12. Jan 03, 2021
  13. 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.
      168ba00d
  14. Dec 29, 2020
  15. Dec 22, 2020
  16. Dec 18, 2020
Loading