Hi everyone.
I already opened this topic on simplesamlphp-user group buy maybe here is a better place for it.
-------------
```
[...]
UIInfo' =>
array (
'PrivacyStatementURL' =>
array (
),
)
[...]
```
Consent module is expecting Privacy Statement URL under 'privacypolicy' option and not 'PrivacyStatementURL'. Because of different naming of option (or should I say attribute), URL is not retreived from SP metadata and so privacypolicy URL from IdP is used at Consent page.
Can you please suggest what would be clean way to map PrivacyStatementURL to privacypolicy option?
Currently we have made fix with changing consent module logic:
```php
//Before
//if (array_key_exists('privacypolicy', $state['Destination'])) {
//After
if ( array_key_exists('PrivacyStatementURL', $state['Destination']['UIInfo']) && array_key_exists('en', $state['Destination']['UIInfo']['PrivacyStatementURL']) ){
$privacypolicy = $state['Destination']['UIInfo']['PrivacyStatementURL']['en'];
```
In the spirit of GDPR,
Thank you!
Pavel