client-api: Return proper status code for SSO login endpoints

This commit is contained in:
Kévin Commaille 2024-05-06 17:01:23 +02:00 committed by Kévin Commaille
parent cae00cfff8
commit fcaf4bd54a
3 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ Bug fixes:
- `sync::sync_events::v3::Timeline::is_empty` now returns `false` when the
`limited` or `prev_batch` fields are set.
- `login_fallback::Response` now returns the proper content type
- `sso_login[_with_provider]` responses now use the proper HTTP status code.
Breaking changes:

View File

@ -32,7 +32,7 @@ pub mod v3 {
}
/// Response type for the `sso_login` endpoint.
#[response(error = crate::Error)]
#[response(error = crate::Error, status = FOUND)]
pub struct Response {
/// Redirect URL to the SSO identity provider.
#[ruma_api(header = LOCATION)]

View File

@ -38,7 +38,7 @@ pub mod v3 {
}
/// Response type for the `sso_login_with_provider` endpoint.
#[response(error = crate::Error)]
#[response(error = crate::Error, status = FOUND)]
pub struct Response {
/// Redirect URL to the SSO identity provider.
#[ruma_api(header = LOCATION)]