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

MSC 1915 - Add a 3PID unbind API #1915

Merged
merged 6 commits into from
Mar 24, 2019
Merged

Conversation

erikjohnston
Copy link
Member

@erikjohnston erikjohnston commented Mar 6, 2019

Rendered

An alternative proposal to #1194

@erikjohnston erikjohnston requested a review from a team March 6, 2019 11:34
@richvdh richvdh self-requested a review March 6, 2019 11:57
@erikjohnston erikjohnston added proposal A matrix spec change proposal proposal-in-review labels Mar 6, 2019
@turt2live turt2live self-requested a review March 6, 2019 19:50
proposals/1915-unbind-identity-server-param.md Outdated Show resolved Hide resolved
proposals/1915-unbind-identity-server-param.md Outdated Show resolved Hide resolved
proposals/1915-unbind-identity-server-param.md Outdated Show resolved Hide resolved

### Client-Server API

Add `POST /_matrix/client/r0/account/3pid/delete` API, which expects a JSON body
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This API already exists: https://matrix.org/docs/spec/client_server/r0.4.0.html#post-matrix-client-r0-account-3pid-delete (you're just adding the id_server param).

Also, the account deactivate API deletes threepids too and therefore might try to unbind them, so if you have an id_server param on this API it implies there out to be one on there too.

Also also, the API to add threepids has a bind boolean parameter controlling whether the HS should also bind the threepid on the given IS. It could make sense for the delete API to have this param too. On the other hand, does it make sense to delete a 3pid from the server but not want to unbind it from the IS?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good points.

Also also, the API to add threepids has a bind boolean parameter controlling whether the HS should also bind the threepid on the given IS. It could make sense for the delete API to have this param too. On the other hand, does it make sense to delete a 3pid from the server but not want to unbind it from the IS?

Honestly, I see this as mostly a problem with the APIs and functionality as they stand. I think to fix this we need to have a big rethink of it all.

proposals/1915-unbind-identity-server-param.md Outdated Show resolved Hide resolved
Co-Authored-By: erikjohnston <erikj@jki.re>
@richvdh richvdh removed their request for review March 11, 2019 18:02
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is realistically my only concern. The proposal looks great overall, and avoiding breaking changes is really appreciated.

proposals/1915-unbind-identity-server-param.md Outdated Show resolved Hide resolved
Co-Authored-By: erikjohnston <erikj@jki.re>
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for enduring my feedback

@erikjohnston
Copy link
Member Author

@mscbot fcp merge

@mscbot
Copy link
Collaborator

mscbot commented Mar 18, 2019

Team member @erikjohnston has proposed to merge this. The next step is review by the rest of the tagged people:

No concerns currently listed.

Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for info about what commands tagged team members can give me.

@mscbot mscbot added proposed-final-comment-period Currently awaiting signoff of a majority of team members in order to enter the final comment period. disposition-merge labels Mar 18, 2019
@mscbot mscbot added final-comment-period This MSC has entered a final comment period in interest to approval, postpone, or delete in 5 days. and removed proposed-final-comment-period Currently awaiting signoff of a majority of team members in order to enter the final comment period. labels Mar 18, 2019
@mscbot
Copy link
Collaborator

mscbot commented Mar 18, 2019

🔔 This is now entering its final comment period, as per the review above. 🔔

@turt2live turt2live added the c2s r0.5.0 Part of the r0.5.0 goal (and related releases) label Mar 18, 2019
@mscbot mscbot added finished-final-comment-period and removed final-comment-period This MSC has entered a final comment period in interest to approval, postpone, or delete in 5 days. labels Mar 24, 2019
@mscbot
Copy link
Collaborator

mscbot commented Mar 24, 2019

The final comment period, with a disposition to merge, as per the review above, is now complete.

@turt2live
Copy link
Member

this now needs an implementation and it's good to go

@turt2live turt2live merged commit b76b7cd into master Mar 24, 2019
@turt2live turt2live added spec-pr-missing Proposal has been implemented and is being used in the wild but hasn't yet been added to the spec and removed finished-final-comment-period labels May 20, 2019
@turt2live
Copy link
Member

Implementation happened at matrix-org/synapse#4982 so this now just needs spec

@turt2live turt2live added this to To add to spec in Matrix 1.0 workflow via automation May 20, 2019
@anoadragon453
Copy link
Member

FYI this MSC needs to be updated to reflect that the path should actually be POST /_matrix/identity/api/v1/3pid/unbind. The MSC is missing the /3pid bit.

@turt2live
Copy link
Member

it was: 2eb9708

@anoadragon453
Copy link
Member

anoadragon453 commented May 21, 2019

Ah ok, cool thanks.

Edit: have updated the link in the OP as people usually click that.

@turt2live turt2live assigned turt2live and unassigned erikjohnston May 27, 2019
@turt2live turt2live moved this from To add to spec to In progress in Matrix 1.0 workflow May 28, 2019
turt2live added a commit that referenced this pull request May 28, 2019
As per [MSC1915](#1915)

Implementation proof: matrix-org/synapse#4982

The only alteration made which differs from the proposal is clarity on how to handle homeservers not knowing the `id_server`. All other differences are unintentional.
turt2live added a commit that referenced this pull request May 28, 2019
As per [MSC1915](#1915)

Implementation proof: matrix-org/synapse#4982

The only alteration made which differs from the proposal is clarity on how to handle homeservers not knowing the `id_server`. All other differences are unintentional.
turt2live added a commit that referenced this pull request May 28, 2019
As per [MSC1915](#1915)

Implementation proof: 
* matrix-org/synapse#4982
* matrix-org/sydent#160

The only alteration made which differs from the proposal is clarity on how to handle homeservers not knowing the `id_server`. All other differences are unintentional.
@turt2live turt2live mentioned this pull request May 28, 2019
@turt2live
Copy link
Member

Spec PR: #2046

@turt2live turt2live added spec-pr-in-review A proposal which has been PR'd against the spec and is in review and removed spec-pr-missing Proposal has been implemented and is being used in the wild but hasn't yet been added to the spec labels May 28, 2019
@turt2live turt2live added merged A proposal whose PR has merged into the spec! and removed spec-pr-in-review A proposal which has been PR'd against the spec and is in review labels Jun 7, 2019
@turt2live
Copy link
Member

merged 🎉

@turt2live turt2live moved this from In progress to Done in Matrix 1.0 workflow Jun 7, 2019
@turt2live turt2live added the kind:feature MSC for not-core and not-maintenance stuff label Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c2s r0.5.0 Part of the r0.5.0 goal (and related releases) disposition-merge identity service kind:feature MSC for not-core and not-maintenance stuff merged A proposal whose PR has merged into the spec! proposal A matrix spec change proposal
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

7 participants