Skip to content

Commit

Permalink
Schema for authn_request ui_locales is not correct italia#303
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrodematteis committed Jan 23, 2024
1 parent 1faa95e commit 03dbb9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spid_cie_oidc/provider/schemas/authn_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class AuthenticationRequest(BaseModel):
claims: Optional[dict]
state: constr(min_length=32)
# TODO: to be improved
ui_locales: Optional[List[str]]
ui_locales: Optional[constr(regex=r'[^ ]+(\s([^ ]+))*')]

# sub claim MUST not be used to prevent that this jwt
# could be reused as a private_key_jwt
Expand Down Expand Up @@ -186,7 +186,7 @@ def example(): # pragma: no cover
acr_values= ["https://www.spid.gov.it/SpidL2", "https://www.spid.gov.it/SpidL1"],
claims= {},
state= "fyZiOL9Lf2CeKuNT2JzxiLRDink0uPcd",
ui_locales= ["codice1", "codice2", "codice3"],
ui_locales= "codice1 codice2 codice3",
sub= "https://rp.cie.it/",
iss= "https://op.spid.agid.gov.it/",
aud= ["https://rp.spid.agid.gov.it/auth"],
Expand Down
2 changes: 1 addition & 1 deletion spid_cie_oidc/provider/tests/authn_request_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"acr_values": ["https://www.spid.gov.it/SpidL2", "https://www.spid.gov.it/SpidL1"],
"claims": CLAIMS_SPID,
"state": "fyZiOL9Lf2CeKuNT2JzxiLRDink0uPcd",
"ui_locales": ["codice1", "codice2", "codice3"],
"ui_locales": "codice1 codice2 codice3",
"sub": "https://rp.cie.it/",
"iss": "https://op.spid.agid.gov.it/",
"aud": ["https://rp.spid.agid.gov.it/auth"],
Expand Down

0 comments on commit 03dbb9c

Please sign in to comment.