Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add list_user_pool_clients and fine grained pagination support #269

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wazy
Copy link

@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
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