Skip to content
Snippets Groups Projects
Unverified Commit 32a4f6c3 authored by Shamil K Muhammed's avatar Shamil K Muhammed
Browse files

Update README

parent 1e1ed9f9
Branches master
Tags v0.1.1
No related merge requests found
...@@ -118,12 +118,12 @@ And then, add these lines to ``mxisd.yaml``: ...@@ -118,12 +118,12 @@ And then, add these lines to ``mxisd.yaml``:
sql: sql:
enabled: true enabled: true
type: mysql type: mysql
connection: "//127.0.0.1/pprod?user=<USERNAME>&password=<PASSWORD>" connection: "//<HOST>/<DATABASE>?user=<USERNAME>&password=<PASSWORD>"
identity: identity:
type: 'uid' type: 'uid'
query: "select (case when ?='email' then username else null end) as uid from users where email=?" query: "select (case when ?='email' then username else null end) as uid from users where email=?"
Where ``<USERNAME>`` and ``<PASSWORD>`` are the database user and password you created when you set up database for synape-diaspora-auth Where ``<HOST>``, ``<DATABASE>``,``<USERNAME>`` and ``<PASSWORD>`` are your database host, diaspora database, user and password you created when you set up database for synapse-diaspora-auth
Now follow the steps `here <https://github.com/kamax-io/mxisd/blob/master/docs/features/authentication.md#advanced>`_. ie, forward the ``/_matrix/client/r0/login`` endpoint to mxisd and add Now follow the steps `here <https://github.com/kamax-io/mxisd/blob/master/docs/features/authentication.md#advanced>`_. ie, forward the ``/_matrix/client/r0/login`` endpoint to mxisd and add
......
...@@ -22,13 +22,13 @@ import bcrypt ...@@ -22,13 +22,13 @@ import bcrypt
import logging import logging
__VERSION__ = "0.1.0" __VERSION__ = "0.1.1"
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
class DiasporaAuthProvider: class DiasporaAuthProvider:
__version__ = "0.1.0" __version__ = "0.1.1"
def __init__(self, config, account_handler): def __init__(self, config, account_handler):
self.account_handler = account_handler self.account_handler = account_handler
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment