Skip to content

Add list_user_pool_clients and fine grained pagination support#269

Open
wazy wants to merge 1 commit intoNabuCasa:masterfrom
wazy:pagination_support
Open

Add list_user_pool_clients and fine grained pagination support#269
wazy wants to merge 1 commit intoNabuCasa:masterfrom
wazy:pagination_support

Conversation

@wazy
Copy link
Copy Markdown

@wazy wazy commented Jul 29, 2024

This PR does the following:

  • better support for paginating through users
  • pagination support for groups
  • added list_user_pool_clients to support retrieving all clients of a user pool along with pagination support
  • tests are included and tox is happy
  • it does NOT include any breaking changes so it is safe to merge

An example of why having pagination limit and explicit pagination token support is that this is useful in a very large pool let's say 1000 clients/groups/users where you need to have some way to request smaller chunks of items and then be able to continue from where you left off. I'm using this approach from a frontend calling lambda that uses these pycognito changes to retrieve pages of clients/groups/users one chunk at a time based on page_tokens passed back and forth.

@wazy
Copy link
Copy Markdown
Author

wazy commented Jul 29, 2024

@ludeeus to continue the conversation from earlier - this still supports full pagination automatically for groups/clients/users but if page_limit is set then that means you are manually going to page through it call by call until no page token is returned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant