client-api: Return proper status code for SSO login endpoints
This commit is contained in:
parent
cae00cfff8
commit
fcaf4bd54a
@ -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:
|
||||
|
||||
|
@ -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)]
|
||||
|
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user