fix: support SCIM 2.0 count=0 parameter per RFC 7644#168
Merged
Conversation
Implement support for count=0 query parameter as specified in RFC 7644 Section 3.4.2.4, which requires returning only metadata (totalResults) without resource data. Changes: - Allow count=0 in Scimitar::Lists::Count (previously raised error) - Skip database query for records when count=0 (performance optimization) - Return empty Resources array with correct totalResults and itemsPerPage=0 - Add comprehensive test coverage for count=0 behavior This fixes issues with SCIM clients (Azure AD, Okta, Google Workspace) that use count=0 to retrieve only total counts without fetching records. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Owner
|
Looks good! Many thanks. I hope to do a release soon, ish; busy period, not much spare time. You can of course set your Gemfile to pull from GitHub on |
pond
approved these changes
Feb 15, 2026
Owner
|
This is now available in v2.15.0. Thanks again! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement support for count=0 query parameter as specified in RFC 7644 Section 3.4.2.4, which requires returning only metadata (totalResults) without resource data.
Changes:
This fixes issues with SCIM clients (Azure AD, Okta, Google Workspace) that use count=0 to retrieve only total counts without fetching records.