Skip to content

Commit

Permalink
System Level Cookies (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
pattisdr authored Nov 6, 2023
1 parent a5885a7 commit f5ab584
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/fideslang/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1245,6 +1245,9 @@ class System(FidesModel):
legitimate_interest_disclosure_url: Optional[AnyUrl] = Field(
description="A URL that points to the system's publicly accessible legitimate interest disclosure."
)
cookies: Optional[List[Cookies]] = Field(
description="System-level cookies unassociated with a data use to deliver services and functionality",
)

_sort_privacy_declarations: classmethod = validator(
"privacy_declarations", allow_reuse=True
Expand Down
8 changes: 7 additions & 1 deletion tests/fideslang/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,13 +414,19 @@ def test_expanded_system(self):
responsibility=[DataResponsibilityTitle.CONTROLLER],
dpo="privacyofficertest@vdx.tv",
data_security_practices=None,
cookies=[{"name": "test_cookie"}],
cookie_max_age_seconds="31536000",
uses_cookies=True,
cookie_refresh=True,
uses_non_cookie_access=True,
legitimate_interest_disclosure_url="http://www.example.com/legitimate_interest_disclosure",
flexible_legal_basis_for_processing=True,
cookies=[
{
"name": "COOKIE_ID_EXAMPLE",
"path": "/",
"domain": "example.com/cookie",
}
],
)

@mark.parametrize(
Expand Down

0 comments on commit f5ab584

Please sign in to comment.