mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Update client_secret examples so that they are valid (#2985)
The regex of allowed characters for a `client_secret` parameter is `[0-9a-zA-Z.=_-]`. This PR updates the `client_secret` spec examples, which currently include an invalid character (an apostrophe).
This commit is contained in:
parent
466911b253
commit
ad93aa6546
|
|
@ -0,0 +1 @@
|
||||||
|
Correct examples of `client_secret` request body parameters so that they do not include invalid characters.
|
||||||
|
|
@ -139,7 +139,7 @@ paths:
|
||||||
"id_server": "matrix.org",
|
"id_server": "matrix.org",
|
||||||
"id_access_token": "abc123_OpaqueString",
|
"id_access_token": "abc123_OpaqueString",
|
||||||
"sid": "abc123987",
|
"sid": "abc123987",
|
||||||
"client_secret": "d0n'tT3ll"
|
"client_secret": "d0nt-T3ll"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -215,7 +215,7 @@ paths:
|
||||||
required: ["client_secret", "sid"]
|
required: ["client_secret", "sid"]
|
||||||
example: {
|
example: {
|
||||||
"sid": "abc123987",
|
"sid": "abc123987",
|
||||||
"client_secret": "d0n'tT3ll"
|
"client_secret": "d0nt-T3ll"
|
||||||
}
|
}
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
|
@ -272,7 +272,7 @@ paths:
|
||||||
"id_server": "example.org",
|
"id_server": "example.org",
|
||||||
"id_access_token": "abc123_OpaqueString",
|
"id_access_token": "abc123_OpaqueString",
|
||||||
"sid": "abc123987",
|
"sid": "abc123987",
|
||||||
"client_secret": "d0n'tT3ll"
|
"client_secret": "d0nt-T3ll"
|
||||||
}
|
}
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue