client-api: Fix the signing key uploading endpoint
Uploading signing keys requires auth using UIAA, the error has thus been changed to the UiaaResponse. Uploading signing keys also fails under Synapse when using the /r0 API path, using the /unstable path succeeds.
This commit is contained in:
parent
f2a78babbd
commit
c0eee62431
@ -3,14 +3,14 @@
|
|||||||
use ruma_api::ruma_api;
|
use ruma_api::ruma_api;
|
||||||
|
|
||||||
use super::CrossSigningKey;
|
use super::CrossSigningKey;
|
||||||
use crate::r0::uiaa::{AuthData, IncomingAuthData};
|
use crate::r0::uiaa::{AuthData, IncomingAuthData, UiaaResponse};
|
||||||
|
|
||||||
ruma_api! {
|
ruma_api! {
|
||||||
metadata: {
|
metadata: {
|
||||||
description: "Publishes cross signing keys for the user.",
|
description: "Publishes cross signing keys for the user.",
|
||||||
method: POST,
|
method: POST,
|
||||||
name: "upload_signing_keys",
|
name: "upload_signing_keys",
|
||||||
path: "/_matrix/client/r0/keys/device_signing/upload",
|
path: "/_matrix/client/unstable/keys/device_signing/upload",
|
||||||
rate_limited: false,
|
rate_limited: false,
|
||||||
authentication: AccessToken,
|
authentication: AccessToken,
|
||||||
}
|
}
|
||||||
@ -39,7 +39,7 @@ ruma_api! {
|
|||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
response: {}
|
response: {}
|
||||||
|
|
||||||
error: crate::Error
|
error: UiaaResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Request<'_> {
|
impl Request<'_> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user