Dropping this in as draft WIP code that allows Moodle to function as an IDP.
This should have a setting that turns the feature on/off and needs some further work before merging, but dropping it here in case someone else wants to pick it up and clean it up.
this is basically in a working state now (tested with a few different SPs) , however we still need to add some validation that a known SP is trying to use the IDP.
Dropping this in as draft WIP code that allows Moodle to function as an IDP.
This should have a setting that turns the feature on/off and needs some further work before merging, but dropping it here in case someone else wants to pick it up and clean it up.