Skip to content
Snippets Groups Projects
  1. Jul 20, 2016
  2. Jul 19, 2016
    • Richard van der Hoff's avatar
      Further registration refactoring · 40cbffb2
      Richard van der Hoff authored
      * `RegistrationHandler.appservice_register` no longer issues an access token:
        instead it is left for the caller to do it. (There are two of these, one in
        `synapse/rest/client/v1/register.py`, which now simply calls
        `AuthHandler.issue_access_token`, and the other in
        `synapse/rest/client/v2_alpha/register.py`, which is covered below).
      
      * In `synapse/rest/client/v2_alpha/register.py`, move the generation of
        access_tokens into `_create_registration_details`. This means that the normal
        flow no longer needs to call `AuthHandler.issue_access_token`; the
        shared-secret flow can tell `RegistrationHandler.register` not to generate a
        token; and the appservice flow continues to work despite the above change.
      40cbffb2
    • Richard van der Hoff's avatar
      rest/client/v2_alpha/register.py: Refactor flow somewhat. · 0da0d0a2
      Richard van der Hoff authored
      This is meant to be an *almost* non-functional change, with the exception that
      it fixes what looks a lot like a bug in that it only calls
      `auth_handler.add_threepid` and `add_pusher` once instead of three times.
      
      The idea is to move the generation of the `access_token` out of
      `registration_handler.register`, because `access_token`s now require a
      device_id, and we only want to generate a device_id once registration has been
      successful.
      0da0d0a2
  3. Jul 18, 2016
    • Richard van der Hoff's avatar
      Add device_id support to /login · f863a52c
      Richard van der Hoff authored
      Add a 'devices' table to the storage, as well as a 'device_id' column to
      refresh_tokens.
      
      Allow the client to pass a device_id, and initial_device_display_name, to
      /login. If login is successful, then register the device in the devices table
      if it wasn't known already. If no device_id was supplied, make one up.
      
      Associate the device_id with the access token and refresh token, so that we can
      get at it again later. Ensure that the device_id is copied from the refresh
      token to the access_token when the token is refreshed.
      f863a52c
  4. Jul 14, 2016
  5. Jul 13, 2016
  6. Jul 05, 2016
  7. Jun 24, 2016
  8. Jun 22, 2016
    • Martin Weinelt's avatar
      Rework ldap integration with ldap3 · 0a32208e
      Martin Weinelt authored
      
      Use the pure-python ldap3 library, which eliminates the need for a
      system dependency.
      
      Offer both a `search` and `simple_bind` mode, for more sophisticated
      ldap scenarios.
      - `search` tries to find a matching DN within the `user_base` while
        employing the `user_filter`, then tries the bind when a single
        matching DN was found.
      - `simple_bind` tries the bind against a specific DN by combining the
        localpart and `user_base`
      
      Offer support for STARTTLS on a plain connection.
      
      The configuration was changed to reflect these new possibilities.
      
      Signed-off-by: default avatarMartin Weinelt <hexa@darmstadt.ccc.de>
      0a32208e
  9. Jun 17, 2016
  10. Jun 09, 2016
    • Mark Haines's avatar
      Add function to load config without generating it · 7dbb4733
      Mark Haines authored
      Renames ``load_config`` to ``load_or_generate_config``
      Adds a method called ``load_config`` that just loads the
      config.
      
      The main synapse.app.homeserver will continue to use
      ``load_or_generate_config`` to retain backwards compat.
      However new worker processes can use ``load_config`` to
      load the config avoiding some of the cruft needed to generate
      the config.
      
      As the new ``load_config`` method is expected to be used by new
      configs it removes support for the legacy commandline overrides
      that ``load_or_generate_config`` supports
      7dbb4733
  11. Jun 08, 2016
  12. Jun 07, 2016
  13. Jun 03, 2016
  14. Jun 02, 2016
  15. Jun 01, 2016
  16. May 31, 2016
  17. May 23, 2016
  18. May 17, 2016
  19. May 16, 2016
  20. May 13, 2016
  21. Apr 21, 2016
  22. Apr 19, 2016
  23. Apr 18, 2016
  24. Apr 08, 2016
  25. Apr 07, 2016
  26. Apr 06, 2016
Loading