Skip to content

Commit

Permalink
chore: bump to scim2-models 0.2.3
Browse files Browse the repository at this point in the history
In this version, SearcRequest attributes and excluded_attributes are
mutually exclusive, so scim2-server does not have to check this
situation explicitly.
  • Loading branch information
azmeuk committed Nov 1, 2024
1 parent dd3e039 commit 3e7500c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classifiers = [

requires-python = ">= 3.11"
dependencies = [
"scim2-models>=0.2.0",
"scim2-models>=0.2.3",
"werkzeug>=3.0.3",
"scim2-filter-parser>=0.7.0",
]
Expand Down
3 changes: 0 additions & 3 deletions scim2_server/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,6 @@ def build_search_request(self, request: Request) -> SearchRequest:

def query_resource(self, request: Request, resource: Optional[ResourceType]):
search_request = self.build_search_request(request)
if search_request.attributes and search_request.excluded_attributes:
# RFC 7644, Section 3.4.2.5
raise BadRequest

kwargs = {}
if resource is not None:
Expand Down
14 changes: 7 additions & 7 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3e7500c

Please sign in to comment.