Skip to content

Commit f5ab584

Browse files
authored
System Level Cookies (#181)
1 parent a5885a7 commit f5ab584

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/fideslang/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,9 @@ class System(FidesModel):
12451245
legitimate_interest_disclosure_url: Optional[AnyUrl] = Field(
12461246
description="A URL that points to the system's publicly accessible legitimate interest disclosure."
12471247
)
1248+
cookies: Optional[List[Cookies]] = Field(
1249+
description="System-level cookies unassociated with a data use to deliver services and functionality",
1250+
)
12481251

12491252
_sort_privacy_declarations: classmethod = validator(
12501253
"privacy_declarations", allow_reuse=True

tests/fideslang/test_models.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,19 @@ def test_expanded_system(self):
414414
responsibility=[DataResponsibilityTitle.CONTROLLER],
415415
416416
data_security_practices=None,
417-
cookies=[{"name": "test_cookie"}],
418417
cookie_max_age_seconds="31536000",
419418
uses_cookies=True,
420419
cookie_refresh=True,
421420
uses_non_cookie_access=True,
422421
legitimate_interest_disclosure_url="http://www.example.com/legitimate_interest_disclosure",
423422
flexible_legal_basis_for_processing=True,
423+
cookies=[
424+
{
425+
"name": "COOKIE_ID_EXAMPLE",
426+
"path": "/",
427+
"domain": "example.com/cookie",
428+
}
429+
],
424430
)
425431

426432
@mark.parametrize(

0 commit comments

Comments
 (0)