italia / spid-cie-oidc-django

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

chore: [Provider] refactor with better compliances on validations and code reuse #125

Closed peppelinux closed 2 years ago

peppelinux commented 2 years ago

Here we moved OpBase to views/init.py and views.py in views/views.py. In other words we splitted that huge provider views file in two, for now.

A general refactor for a better code reuse in token endpoint, between auth_code and refresh_token have been made. Not at least the validation behaviour MUST raise exception, to be handled in the calling views.

@francescatronconi @dezhizhang1985 ^