kamax-matrix / mxisd

Federated Matrix Identity Server
GNU Affero General Public License v3.0
224 stars 115 forks source link

3pid authentication #60

Closed adrnam closed 6 years ago

adrnam commented 6 years ago

Includes commit 3d26316 from maxidor which allows to test sign-in by using 3PID email without backend: Just add to application.yaml config file:

memory:
  enabled: true
  identities:
    - username: "<matrix_username>"
      password: "<matrix_password>"
      threepids:
        - medium: "email"
          address: "<random_email>@<random_domain>"

(note that this password field is not used because the password must be provided by the login request)

Note: a method to support GET on login (which returns hardcoded JSON message) has been added in order to prevent Riot client displaying an error (405) message when setting addresses of HS and IS.

Requires to configurate Proxy Reverse in Apache and DNS Overwrite as for User Directory feature :

Thus, you should be able to login to your HS using mxisd by typing your 3PID (e.g. you email address) as username and your matrix password.