We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a5bcd3 commit 109e068Copy full SHA for 109e068
1 file changed
src/OpenConext/EngineBlock/Service/Consent/ConsentHashService.php
@@ -60,9 +60,13 @@ public function countTotalConsent($consentUid): int
60
return $this->consentRepository->countTotalConsent($consentUid);
61
}
62
63
+ /**
64
+ * The old way of calculating the attribute hash, this is not stable as a change of the attribute order,
65
+ * change of case, stray/empty attributes, and renumbered indexes can cause the hash to change. Leaving the
66
+ * user to give consent once again for a service she previously gave consent for.
67
+ */
68
public function getUnstableAttributesHash(array $attributes, bool $mustStoreValues): string
69
{
- $hashBase = null;
70
if ($mustStoreValues) {
71
ksort($attributes);
72
$hashBase = serialize($attributes);
0 commit comments