Closed r2d2leboss closed 7 years ago
What happens if you try with the latest release instead of master?
master
is currently the same as the latest release (0.23.1 / https://github.com/matrix-org/synapse/commit/6c1bb1601e43c89637ae5bd8720c255646ca8141)
What about the docker container, is it silvio's? or are you building it yourself?
Yes I'm using the silvio docker container adding your rest auth provider. Then, I build it myself. Here is the diff of the Dockerfile:
diff --git a/Dockerfile b/Dockerfile
index 2a9d5ee..dc39ef5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -62,6 +62,7 @@ RUN set -ex \
libxml2-dev \
libxslt1-dev \
libxslt1.1 \
+ libyaml-dev \
linux-headers-amd64 \
make \
pwgen \
@@ -90,7 +91,6 @@ RUN set -ex \
apt-get autoremove -y \
file \
gcc \
- git \
libevent-dev \
libffi-dev \
libjpeg62-turbo-dev \
@@ -107,3 +107,8 @@ RUN set -ex \
; \
apt-get autoremove -y ;\
rm -rf /var/lib/apt/* /var/cache/apt/*
+
+RUN cd /tmp ;\
+ git clone https://github.com/maxidor/matrix-synapse-rest-auth.git ;\
+ cd matrix-synapse-rest-auth ;\
+ cp rest_auth_provider.py /usr/lib/python2.7/dist-packages/
\ No newline at end of file
Thanks @maxidor for considering this issue.
and what is your version of mxisd?
Directly your docker image available here https://hub.docker.com/r/kamax/mxisd (version latest / sha256:63dbb1738bed720773e07ac876d8c65ae1880ac2b484b67fc57815f8bada1537)
In the log, I see mxisd is contacted via HTTPS and not HTTP. If this was not a replacement on your part, I have a feeling you do not make synapse talk to mxisd directly (using an internal IP or DNS) and make it go through a reverse proxy or the like, which might change the request itself.
Could you double check please?
Thanks, you were right, it was the issue. I used the internal hostname in my docker-compose instead of the reverse proxy url and it works fine now.
Hi,
I'm trying to use this auth provider but it doesn't seem to work. I'm using the master branch of synapse inside a Docker container. It looks like https://github.com/kamax-io/matrix-synapse-rest-auth/blob/master/rest_auth_provider.py#L47 request is updated by Synapse ? (mxisd complains about a GET request while it's a POST request, and so it results in an error 405)
Thanks