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

Store identity server in Account Data and support choosing identity server integration in User Settings #10094

Closed
lampholder opened this issue Jun 18, 2019 · 10 comments · Fixed by matrix-org/matrix-react-sdk#3320

Comments

@lampholder
Copy link
Member

lampholder commented Jun 18, 2019

2019-08-02 at 15 28

2019-08-02 at 15 29

Additional requirements:

  • when we change IS, we'll need to fetch its policy docs and capture that the user has agreed to them
  • we should probably also validate that it's really an IS
  • we should also somehow validate that the HS permits access to this IS if it maintains a whitelist...
@turt2live

This comment has been minimized.

@lampholder

This comment has been minimized.

@lampholder lampholder changed the title Support changing (or disabling) identity server integration in User Settings Store identity server in Account Data and support choosing identity server integration in User Settings Jun 25, 2019
@nadonomy
Copy link
Contributor

nadonomy commented Jul 5, 2019

After validating today, latest comps are in Zeplin: https://zpl.io/brMdWo3

@dbkr
Copy link
Member

dbkr commented Aug 7, 2019

One thing that's not clear on this is how this should work with all the other places that specify ISes, ie. if the one you had at login time (be that from your client's default, .well-known or entered), is that then discarded in favour of using the one in your account settings? I'm going to assume so for now.

@jryans
Copy link
Collaborator

jryans commented Aug 7, 2019

Another complexity is that (similar to the Disconnect button in #10425), we need to ensure all your 3PIDs are unbound (both on the IS itself and also the HS record of where your 3PIDs are bound) before actually changing the IS.

dbkr added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 9, 2019
Just changes the current ID server being used

To come in subsequent PRs:
 * Store this in account data
 * Check for terms or support the proper UI for accepting terms when setting
 * Support disconnecting

Part 1 of element-hq/element-web#10094
Requires matrix-org/matrix-js-sdk#1013
@lampholder
Copy link
Member Author

One thing that's not clear on this is how this should work with all the other places that specify ISes, ie. if the one you had at login time (be that from your client's default, .well-known or entered), is that then discarded in favour of using the one in your account settings? I'm going to assume so for now.

We should no longer have an IS 'supplied at login time' - rather there is a 'default' that is 'the Identity Server the client would prompt to use if asked to do something identity servery and the user has not made an active choice to use either a different identity server or no identity servrer at all'.

This 'default' could be specified in the config.json or in .well-known (I can't think of anywhere else sensible to provide this at the moment), or it could not be specified at all.

There is an unanswered question about what we do if an admin wants to provide a matrix stack with a locked-down IS choice. I think answering this question is hard, so despite the risk of our painting ourselves into a corner with the proposed, I'd like to keep a lid on this for now and tackle it if/when we have a concrete usecase to consider.

@dbkr
Copy link
Member

dbkr commented Aug 12, 2019

The nice inline terms dialog has been spun out to #10539 as it's not as critial-path as the rest of this.

@dbkr
Copy link
Member

dbkr commented Aug 14, 2019

Second part of this is done. I think @turt2live is working on the first part.

@manuroe
Copy link
Member

manuroe commented Aug 14, 2019

Kamino cloned this issue to vector-im/riot-ios

@turt2live
Copy link
Member

I've reclaimed this for the storing in account data part. matrix-org/matrix-react-sdk#3300 has been added to "in test" for Dave's portion of the work.

MSC I need to care about: matrix-org/matrix-spec-proposals#2230

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants