mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-07-02 17:51:40 +00:00
ce68d63adb
Make `filter[client]` on `GET /api/admin/v1/oauth2-sessions` repeatable so admin tooling can fetch sessions belonging to a set of clients in one request. The field on `FilterParams` changes from `Option<Ulid>` to `Vec<Ulid>`; the struct was already extracted with `axum_extra::extract::Query` so the repeated values are not silently dropped. Each client ULID is validated to exist (mirroring the previous single-client `404` behaviour) before being passed to the new `OAuth2SessionFilter::for_clients` storage filter. The `Display` impl used to reconstruct cursor links now emits one `filter[client]=…` segment per client so pagination preserves the filter. The OpenAPI schema is regenerated via `misc/update.sh` and now describes the parameter as an array.