italia / spid-cie-oidc-django

The SPID/CIE OIDC Federation SDK, written in Python
Apache License 2.0
27 stars 28 forks source link

[Fix] Add new attributes to authn request schema validator #29

Closed francescatronconi closed 2 years ago

francescatronconi commented 2 years ago

Add this attributes to authn request schema validator both for spid and cie:

jti can be produced like this:

import uuid

jti: str(uuid.uuid4())
peppelinux commented 2 years ago

AgID confirmed that these are commons claims for every jwt and also required

peppelinux commented 2 years ago

Done here https://github.com/peppelinux/spid-cie-oidc-django/blob/4609e8e949b93a537daa14a51f30bcb7951bd7a9/spid_cie_oidc/onboarding/schemas/authn_requests.py#L137