5 Commits

Author SHA1 Message Date
Anatoliy Sablin
c782c84aea Revert "async/await check_password"
This reverts commit 8e4718ae
2020-08-02 16:09:25 +03:00
ma1uta
092d8f664a Merge pull request #3 from jmastr/async_await_check_password
async/await check_password
2020-07-26 17:03:52 +00:00
Julian Strobl
8e4718ae72 async/await check_password
Was introduced in Synapse v1.15.0.

This may be related to:
* https://github.com/ma1uta/matrix-synapse-rest-password-provider/issues/1
2020-07-15 19:31:33 +02:00
ma1uta
5d66d6972b Merge pull request #2 from halkeye/add-setuppy
Add setup.py for easier install (No need to figure out paths)
2020-03-29 13:15:25 +00:00
Gavin Mogan
72d434956a Add setup.py for easier install (No need to figure out paths) 2020-03-26 12:01:05 -07:00
2 changed files with 14 additions and 12 deletions

View File

@@ -21,22 +21,12 @@ your own backend, following the [Integration section](#integrate). This module s
and profile information into actionables in synapse, and adapt your user profile with what is given. and profile information into actionables in synapse, and adapt your user profile with what is given.
## Install ## Install
### From Synapse v0.34.0/py3 Copy in whichever directory python can pick it up as a module.
Copy in whichever directory python3.x can pick it up as a module.
If you installed synapse using the Matrix debian repos:
``` ```
sudo curl https://raw.githubusercontent.com/ma1uta/matrix-synapse-rest-password-provider/master/rest_auth_provider.py -o /opt/venvs/matrix-synapse/lib/python3.7/site-packages/rest_auth_provider.py sudo pip install git+https://github.com/ma1uta/matrix-synapse-rest-password-provider
``` ```
If the command fail, double check that the python version still matches. If not, please let us know by opening an issue.
### Before Synapse v0.34.0/py3 or any py2-based release
Copy in whichever directory python2.x can pick it up as a module.
If you installed synapse using the Matrix debian repos:
```
sudo curl https://raw.githubusercontent.com/ma1uta/matrix-synapse-rest-password-provider/master/rest_auth_provider.py -o /usr/lib/python2.7/dist-packages/rest_auth_provider.py
```
If the command fail, double check that the python version still matches. If not, please let us know by opening an issue. If the command fail, double check that the python version still matches. If not, please let us know by opening an issue.
## Configure ## Configure

12
setup.py Normal file
View File

@@ -0,0 +1,12 @@
from setuptools import setup
setup(
name="rest_auth_provider",
version="0.0.1",
py_modules=['rest_auth_provider'],
description="Password Provider for Synapse fetching data from a REST endpoint",
include_package_data=True,
zip_safe=True,
install_requires=[],
)