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] [Provider] a settings parameter to define how many times a token can be refreshed with a refresh_token #104

Closed peppelinux closed 2 years ago

peppelinux commented 2 years ago

in provider.settings

OIDCFED_PROVIDER_MAX_REFRESH = 1

in provider.views.TokenEndpoint.grant_refresh_token we have to count how many token have been issued and check if the threshold have been exceeded

this issue is also linked to this other https://github.com/italia/spid-cie-oidc-django/issues/76

peppelinux commented 2 years ago

Done here: https://github.com/italia/spid-cie-oidc-django/pull/116