forked-synapse/synapse
Andrew Morgan 3505ffcda7
Fix existing v2 identity server calls (MSC2140) (#6013)
Two things I missed while implementing [MSC2140](https://github.com/matrix-org/matrix-doc/pull/2140/files#diff-c03a26de5ac40fb532de19cb7fc2aaf7R80).

1. Access tokens should be provided to the identity server as `access_token`, not `id_access_token`, even though the homeserver may accept the tokens as `id_access_token`.
2. Access tokens must be sent to the identity server in a query parameter, the JSON body is not allowed.

We now send the access token as part of an `Authorization: ...` header, which fixes both things.

The breaking code was added in https://github.com/matrix-org/synapse/pull/5892

Sytest PR: https://github.com/matrix-org/sytest/pull/697
2019-09-11 11:59:45 +01:00
..
_scripts Run Black. (#5482) 2019-06-20 19:32:02 +10:00
api Remove double return statements (#5962) 2019-09-03 11:42:45 +01:00
app Allow Synapse to send registration emails + choose Synapse or an external server to handle 3pid validation (#5987) 2019-09-06 11:35:28 +01:00
appservice Remove double return statements (#5962) 2019-09-03 11:42:45 +01:00
config Merge pull request #5934 from matrix-org/erikj/censor_redactions 2019-09-09 15:29:39 +01:00
crypto Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
events Merge pull request #5805 from matrix-org/erikj/validate_state 2019-08-01 13:45:48 +01:00
federation Remove origin parameter from add_display_name_to_third_party_invite and add params to docstring (#6010) 2019-09-11 10:37:17 +01:00
groups Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00
handlers Fix existing v2 identity server calls (MSC2140) (#6013) 2019-09-11 11:59:45 +01:00
http Trace how long it takes for the send trasaction to complete, including retrys (#5986) 2019-09-05 17:44:55 +01:00
logging Don't assume there is a 'self' arg in @trace decorator 2019-09-06 10:07:12 +01:00
metrics Add a build info metric to Prometheus (#6005) 2019-09-10 00:14:58 +10:00
module_api Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
push Add opentracing span for HTTP push 2019-09-09 10:24:14 +01:00
replication Trace how long it takes for the send trasaction to complete, including retrys (#5986) 2019-09-05 17:44:55 +01:00
res/templates Allow Synapse to send registration emails + choose Synapse or an external server to handle 3pid validation (#5987) 2019-09-06 11:35:28 +01:00
rest Add changelog 2019-09-10 17:56:10 +01:00
server_notices Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
state Remove double return statements (#5962) 2019-09-03 11:42:45 +01:00
static Add 'rel' attribute to default welcome page. (#5695) 2019-07-19 12:03:36 +01:00
storage Merge pull request #6004 from matrix-org/jaywink/autojoin-create-real-users 2019-09-09 17:37:52 +03:00
streams Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
util Revert "Use the v2 lookup API for 3PID invites (#5897)" (#5937) 2019-08-30 12:00:20 +01:00
__init__.py 1.3.1 2019-08-17 09:16:17 +01:00
event_auth.py Cleanup event auth type initialisation (#5975) 2019-09-04 16:16:56 +01:00
notifier.py Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
python_dependencies.py Implement a structured logging output system. (#5680) 2019-08-28 21:18:53 +10:00
secrets.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
server.py cleanups 2019-06-27 00:37:41 +01:00
server.pyi Run Black. (#5482) 2019-06-20 19:32:02 +10:00
types.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
visibility.py Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00