Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema for authn_request ui_locales is not correct #303

Open
matteo-s opened this issue Jan 10, 2024 · 0 comments
Open

Schema for authn_request ui_locales is not correct #303

matteo-s opened this issue Jan 10, 2024 · 0 comments

Comments

@matteo-s
Copy link

ui_locales by spec is a space-separated list of identifiers, but in the schema is defined as List[].

When an RP passes a valid string, with one or more values in it, the schema validator complains that the parameter is invalid.
This is caused by the update of the parameter in 806a4e3
in spid_cie_oidc/provider/schemas/authn_requests.py

    ui_locales: Optional[List[str]]

To resolve either switch back the definition (rolling back the commit) or modify the handling in the view to force processing the parameter as List.

in spid_cie_oidc/provider/views/authz_request_view.py

 def validate_authz(self, payload: dict):

        must_list = ("scope", "acr_values", "ui_locales")
pietrodematteis pushed a commit to pietrodematteis/spid-cie-oidc-django that referenced this issue Jan 23, 2024
pietrodematteis added a commit to pietrodematteis/spid-cie-oidc-django that referenced this issue Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant