by Daniel Miranda.
It's seems to me that is a folder permissions issue. Windows is a pain with permissions.
Is there any requirements to not use Moodle 3.0+?
I have made a plugin [1] to authenticate using SAML2 with SimpleSAMLphp.
If you are interested, I can adapt the plugin to Windows folder path.