You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/setup/README.md
+1-33
Original file line number
Diff line number
Diff line change
@@ -11,43 +11,11 @@ The authentication service becomes the source of truth for user accounts and acc
11
11
At time of writing, the authentication service is meant to be run on a standalone domain name (e.g. `auth.example.com`), and the homeserver on another (e.g. `matrix.example.com`).
12
12
This domain will be user-facing as part of the authentication flow.
13
13
14
-
When a client initiates an authentication flow, it will discover the authentication service through the deployment `.well-known/matrix/client` endpoint.
15
-
This file will refer to an `issuer`, which is the canonical name of the authentication service instance.
16
-
Out of that issuer, it will discover the rest of the endpoints by calling the `[issuer]/.well-known/openid-configuration` endpoint.
17
-
By default, the `issuer` will match the root domain where the service is deployed (e.g. `https://auth.example.com/`), but it can be configured to be different.
18
-
19
14
An example setup could look like this:
20
15
21
16
- The deployment domain is `example.com`, so Matrix IDs look like `@user:example.com`
22
-
- The issuer chosen is `https://auth.example.com/`
23
-
- The homeserver is deployed on `matrix.example.com`
24
17
- The authentication service is deployed on `auth.example.com`
25
-
- Calling `https://example.com/.well-known/matrix/client` returns the following JSON:
26
-
27
-
```json
28
-
{
29
-
"m.homeserver": {
30
-
"base_url": "https://matrix.example.com"
31
-
},
32
-
"org.matrix.msc2965.authentication": {
33
-
"issuer": "https://auth.example.com/",
34
-
"account": "https://auth.example.com/account"
35
-
}
36
-
}
37
-
```
38
-
39
-
- Calling `https://auth.example.com/.well-known/openid-configuration` returns a JSON document similar to the following:
0 commit comments