This project consists of two separate parts for simpleSAMLphp. This README assumes you know your way around in simpleSAMLphp and know how to setup a working implementation.
```
The authentication module is located in modules and is called customauth, and should be enabled like this:
config/authsources.php
```
...
...
@@ -14,3 +10,22 @@ config/authsources.php
+ 'customauth:External',
+ ],
```
Don't forget to ```touch enable``` in the module directory to enable the module.
The second part are the DB based *IdP Hosted* and *SP Remote* metadata files, found in metadata. These files enable database based configuration, based on the DB structure found in testidp.sql
The Database consists of 3 tables:
* options
* idps
* config
**options** contains the definitions of the adjustable simpleSAMLPHP hosted IdP configuration options, this can be used to render a configuration interface. The options have a key, which is used in config to configure this option for a specific IdP.
**idps** contains the vhost based configuration for an IdP and the most important part is the sp_metadata columns, which should contain the connected SP metadata so that this IdP trusts this SP.
**config** contains the per-IdP-options values that are dynamically loaded into the IdP config. Most of them change the dynamically created metadata for this IdP.