-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Simplify the relationship between /welcome /login /register config.json .well-known and guest users #9290
Comments
This is problematic for
We have to default at some point, unless the goal is to error obviously when neither a server_name/hs_url is specified? |
Ah yes, could we create the guest user upon first viewing the directory? Or could viewing the directory also not require a guest user?
Sounds good to me. We can (and should) ship a default config.json that sets the This does raise a question about people migrating to the new version, but we can do a noisy blog post (and if it fails fast with easily remedyable config.json changes to fix then dilligent riot install managers won't get tripped up anyway) |
Not requiring a guest leads into the question of "which homeserver are you viewing the directory for?", and discovering that, at which point you'd might as well create a guest because people are likely to click on rooms. I'd generally recommend having a guest account be created because it can be slow (see also: matrix.org)
I think in practice most people are already using matrix.org as a default, or have changed the strings as appropriate. Screaming in bright red text saying "config.json error: no default homeserver specified" is probably okay. Would we want users to still be able to log in despite this error? (using full mxids, for instance, or changing the URLs manually). |
Summarizing from the discussion on April 10th, UK Afternoon:
New app logic:
when the user types a full mxid into login:
|
also most (all?) of the issues listed above should be fixed with this new behaviour definition |
Would the config issues here affect integrations and lab settings setting in the config? As far as I can tell, the only thing being respected is the "brand" variable. |
Unlikely, that sounds like a different problem. |
Implements the process described here: #9290 (comment) The expectation is that later layers (like the react-sdk) will make use of the `validated_discovery_config` option instead of interpreting the config themselves. We intentionally block the UI from loading here to avoid races between discovery and the app loading.
Implements the process described here: #9290 (comment) The expectation is that later layers (like the react-sdk) will make use of the `validated_discovery_config` option instead of interpreting the config themselves. We intentionally block the UI from loading here to avoid races between discovery and the app loading.
TODO still remains about making ModularServerConfig extend ServerConfig instead of duplicating everything. See element-hq/element-web#9290
Applies to verification of the homeserver, identity server, and fetching of the .well-known objects. Does not affect other HTTP requests. See element-hq/element-web#9290
We don't actually need to do anything because the app transparently handles this. See #9290
The app is expected to flag a particular config themselves as default. This is primarily intended so that other parts of the app can determine what to do based on whether or not the config is a default config. See element-hq/element-web#9290
For use in the rest of the app. See #9290
This doesn't cover default_server_name because that pulls in a questionable amount of JS. See #9290
This doesn't cover default_server_name because that pulls in a questionable amount of JS. See #9290
After weeks (months?) of work, it's now finally up for review: matrix-org/matrix-react-sdk#3001 and co. |
Fixed by matrix-org/matrix-react-sdk#3001 - it won't make it into 1.2.0, but should be in the next regularly scheduled release. |
Things which I would like to be true:
default_server_name
or adefault_hs_url
- if you specify both, we fail completely and obviouslySign into your Matrix account on ${homeserver_name}
stringOutstanding items:
Task list for Travis:
default_server_config
config.json optionis_url
andhs_url
handling from query paramstravis/feature/wellknown2
intodevelop
(PR: Fix relationship between guests, .well-known, and auth matrix-org/matrix-react-sdk#3001)The text was updated successfully, but these errors were encountered: