File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,10 @@ Error details: {e}
290
290
match result {
291
291
Ok ( response) => {
292
292
let status = response. status ( ) ;
293
- // We're missing the localpart parameter, so expect a 400
293
+ // We intentionally omit the required 'localpart' parameter in this request.
294
+ // If authentication is successful, Synapse returns a 400 Bad Request because of the missing parameter.
295
+ // If authentication fails, Synapse will return a 403 Forbidden.
296
+ // If the MAS integration isn't enabled, Synapse will return a 404 Not found.
294
297
if status == StatusCode :: BAD_REQUEST {
295
298
info ! (
296
299
r#"✅ The Synapse admin API is reachable with authentication at "{mas_api}"."#
Original file line number Diff line number Diff line change @@ -66,4 +66,4 @@ To do so, you need to:
66
66
- ` enabled: true `
67
67
- ` endpoint ` set to the URL of the authentication service
68
68
- ` secret ` set to the same secret as the ` admin_token ` that was set in the ` msc3861 ` section
69
- - Optionally, remove the client provisionned for Synapse in the ` clients ` section of the MAS configuration
69
+ - Optionally, remove the client provisioned for Synapse in the ` clients ` section of the MAS configuration
You can’t perform that action at this time.
0 commit comments