Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace /bind with /3pid/bind #1967

Merged
merged 2 commits into from
Apr 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/identity/associations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ paths:
}
schema:
$ref: "../client-server/definitions/errors/error.yaml"
"/bind":
"/3pid/bind":
post:
summary: Publish an association between a session and a Matrix user ID.
description: |-
Expand Down
6 changes: 3 additions & 3 deletions proposals/1915-unbind-identity-server-param.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ from the given identity server.

### Identity Server 3PID Unbind API

Add `POST /_matrix/identity/api/v1/unbind` with `mxid` and `threepid` fields.
Add `POST /_matrix/identity/api/v1/3pid/unbind` with `mxid` and `threepid` fields.
The `mxid` is the user's `user_id` and `threepid` is a dict with the usual
`medium` and `address` fields.

If the server returns a 400, 404 or 501 HTTP error code then the homeserver
should assume that the identity server doesn't support the `/unbind` API, unless
should assume that the identity server doesn't support the `/3pid/unbind` API, unless
it returns a specific matrix error response (i.e. the body is a JSON object with
`error` and `errcode` fields).

Expand All @@ -73,7 +73,7 @@ The identity server should authenticate the request in one of two ways:
Example:

```
POST /_matrix/identity/api/v1/unbind HTTP/1.1
POST /_matrix/identity/api/v1/3pid/unbind HTTP/1.1

{
"mxid": "@foobar:example.com",
Expand Down