Open dustinbrisebois opened 6 years ago
@dustinbrisebois can you please convert this into a pull request for both stable branches?
Hi @dustinbrisebois , what would happen if someone is using http instead of https for metadata? I think this will prevent unsecure http (which could be good in some way).
I cannot merge the code as it is only PHP 7 compatible.
I'd suggest making it a configuration available only for environments with PHP 7.
See: https://travis-ci.org/catalyst/moodle-auth_saml2/builds/352596481
Pull requests are welcome.
in moodle-auth_saml2/classes/metadata_fetcher.php on lines: 63 - 71
should be:
Ideally an option to also enable CURLOPT_SSL_VERIFYSTATUS => 1 for host-servers that support OCSP stapling.
see: https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html for documentation.