🐛 Bug Report: API "List OIDC clients" paging is broken #94

Closed
opened 2025-07-08 08:39:39 -04:00 by AtHeartEngineer · 0 comments

Originally created by @dougmeredith on 6/6/2025

Reproduction steps

#!/bin/bash

curl -L 'https://sso.test.dstrc.org/api/oidc/clients?limit=5&page=2' \
-H 'Accept: */*' \
-H 'X-API-KEY: 4UNTNF8qonRzxaCgYaG7wH7nKTEj6gY4'

(test server not even Internet accessible; nobody needs to panic about the details above lol)

Expected behavior

This should return clients 6-10.

Actual Behavior

It returns clients 1-20.

  "pagination": {
    "totalPages": 2,
    "totalItems": 21,
    "currentPage": 1,
    "itemsPerPage": 20
  }

Version and Environment

v1.2.0

Log Output

No response

*Originally created by @dougmeredith on 6/6/2025* ### Reproduction steps ``` #!/bin/bash curl -L 'https://sso.test.dstrc.org/api/oidc/clients?limit=5&page=2' \ -H 'Accept: */*' \ -H 'X-API-KEY: 4UNTNF8qonRzxaCgYaG7wH7nKTEj6gY4' ``` (test server not even Internet accessible; nobody needs to panic about the details above lol) ### Expected behavior This should return clients 6-10. ### Actual Behavior It returns clients 1-20. ``` "pagination": { "totalPages": 2, "totalItems": 21, "currentPage": 1, "itemsPerPage": 20 } ``` ### Version and Environment v1.2.0 ### Log Output _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pocket-id#94