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

Function to add Matrix .well-known compatibility. #4

Merged
merged 2 commits into from Jun 21, 2019
Merged

Function to add Matrix .well-known compatibility. #4

merged 2 commits into from Jun 21, 2019

Conversation

jrswab
Copy link
Contributor

@jrswab jrswab commented Jun 20, 2019

Added needed structs to catch the unmarshaled JSON and the GetServer function.

GetServer() follows the Matrix spec by extracting the domain from the user ID to get data about the server the user claims to be trying to connect to. GetServer() takes a userID as it's only parameter and returns: The "Home Server", "Identity Server", and an error.

Link to Matrix spec.

Jaron Swab and others added 2 commits June 19, 2019 21:04
Added needed structs to catch the unmarshaled JSON and the `GetServer`
function.

`GetServer()` follows the Matrix spec by extracting the domain from the user ID to get data about the server the user claims to be trying to connect to. `GetServer()` takes a userID as it's only parameter and returns: The "Home Server", "Identity Server", and an error.

[Link to Matrix spec.](https://matrix.org/docs/spec/client_server/r0.5.0#server-discovery)
@tulir tulir merged commit 6a1d1e6 into mautrix:master Jun 21, 2019
@jrswab jrswab deleted the dotWellKnown branch June 30, 2019 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants