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

Custom homeserver on /login should use public-facing server name instead of delegation URL #147

Open
fnwbr opened this issue Mar 5, 2024 · 0 comments

Comments

@fnwbr
Copy link
Member

fnwbr commented Mar 5, 2024

Right now you have to provide the full URL to where the homeserver is living, such as synapse.example.com instead of example.com, or matrix.medienhaus.dev instead of medienhaus.dev.

This currently also results in the login form showing something like username:matrix.medienhaus.dev, when in fact the full user handle is username:medienhaus.dev.

Let's fix this by implementing a proper lookup of the potential .well-known delegation documented in https://matrix-org.github.io/synapse/latest/delegate.html. This is how Cinny is doing it: https://github.com/cinnyapp/cinny/blob/689adde8ae148d2de76bab0d11d7e0e8f35b7439/src/util/matrixUtil.js#L12C23-L12C33

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

No branches or pull requests

1 participant