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][RP] SPID button random ordering of entities #110

Closed peppelinux closed 2 years ago

peppelinux commented 2 years ago

here: https://github.com/italia/spid-cie-oidc-django/blob/main/spid_cie_oidc/relying_party/views.py#L588

we just need to implement a shuffle method to randomize the elements ordering inside of a list

@mauro ^

peppelinux commented 2 years ago
import random

random.shuffle(providers)
dezhizhang1985 commented 2 years ago

done here https://github.com/italia/spid-cie-oidc-django/pull/121