italia / spid-cie-oidc-django

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

[Feat] Metadata validators for RP and OP #40

Closed peppelinux closed 2 years ago

peppelinux commented 2 years ago

Hi @francescatronconi

I have just adjusted the sample data and made some bugfix in trust chain evaluation here: https://github.com/peppelinux/spid-cie-oidc-django/commit/1e3ab6aeda461918a2eb5495c9c90706d3677291

What I realized is that we need metadata validators for openid_provider and openid_relying_party to be developed as standalone schemas and also included in models validators

in entity.models.FederationEntityConfiguration and in authority.models.FederationEntityDescendants

I had jwks out of rp metadata and lost a few minutes due to this.

That said I think if it’s okay with you we should continue on pydantic and the metadata of OP and RP Metadata is on OIDC CIE, section 3, page 8

peppelinux commented 2 years ago

Done in 0.4.0