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

Conversation

Projects
None yet
2 participants
@jrswab
Copy link
Contributor

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.

jrswab and others added some commits Jun 20, 2019

Function to add matrix .well-known compatibily.
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 tulir:master Jun 21, 2019

@jrswab jrswab deleted the jrswab:dotWellKnown branch Jun 30, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.