Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
Commits
f77e9976
Unverified
Commit
f77e9976
authored
5 years ago
by
Brendan Abolivier
Browse files
Options
Downloads
Patches
Plain Diff
Send 3PID bind requests as JSON data
parent
f2817145
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/5656.bugfix
+1
-0
1 addition, 0 deletions
changelog.d/5656.bugfix
synapse/handlers/identity.py
+1
-1
1 addition, 1 deletion
synapse/handlers/identity.py
with
2 additions
and
1 deletion
changelog.d/5656.bugfix
0 → 100644
+
1
−
0
View file @
f77e9976
Fix 3PID bind requests being sent to identity servers as `application/x-form-www-urlencoded` data, which is deprecated.
This diff is collapsed.
Click to expand it.
synapse/handlers/identity.py
+
1
−
1
View file @
f77e9976
...
@@ -118,7 +118,7 @@ class IdentityHandler(BaseHandler):
...
@@ -118,7 +118,7 @@ class IdentityHandler(BaseHandler):
raise
SynapseError
(
400
,
"
No client_secret in creds
"
)
raise
SynapseError
(
400
,
"
No client_secret in creds
"
)
try
:
try
:
data
=
yield
self
.
http_client
.
post_
urlencoded
_get_json
(
data
=
yield
self
.
http_client
.
post_
post
_get_json
(
"
https://%s%s
"
%
(
id_server
,
"
/_matrix/identity/api/v1/3pid/bind
"
),
"
https://%s%s
"
%
(
id_server
,
"
/_matrix/identity/api/v1/3pid/bind
"
),
{
"
sid
"
:
creds
[
"
sid
"
],
"
client_secret
"
:
client_secret
,
"
mxid
"
:
mxid
},
{
"
sid
"
:
creds
[
"
sid
"
],
"
client_secret
"
:
client_secret
,
"
mxid
"
:
mxid
},
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment