Copy env.example to .env and adjust all properties.
A valid wildcard certificate/chain and key should be stored in the cert directory. The filenames should be called:
```
wildcard_cert.crt
wildcard_chain.crt
wildcard_cert.key
```
testidp/config/logins.json contains all the testaccounts and is volume mounted.
testidp/admin/application/classes/phpmailer.php contains the phpmailer configuration for sending the admin mails. You should replace the Username/Password, Host and setFrom.
## Manual deploy
All files below testidp/simplesamlphp should be dropped in a working simplesamlphp installation.
The testidp/admin directory should be served as a separate vhost.
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:
...
...
@@ -20,6 +36,7 @@ The Database consists of 3 tables:
* options
* idps
* config
* accounts
**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.
...
...
@@ -27,5 +44,5 @@ The Database consists of 3 tables:
**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.
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `config`
--
LOCKTABLES`config`WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */;
INSERTINTO`config`VALUES(1,1,'Foobar DB DisplayName'),(1,2,'Foobar DB'),(1,3,'http://foobar.org/url'),(1,5,'technical'),(1,6,'technical@geant.org'),(1,7,'FooDB'),(1,8,'Doe'),(1,9,'+316012345678'),(1,10,'Foobar DB inc.'),(1,11,'Foobar DB mdui'),(1,12,'Foober DB description mdui'),(1,13,'Foobar DB authority'),(1,14,'2008-01-17T11:28:03Z'),(1,15,'http://foobar.org/policy/en');
INSERTINTO`options`VALUES(1,'OrganizationDisplayName','string','Organization Display name'),(2,'OrganizationName','string','Organization Name'),(3,'OrganizationURL','string','Organization URL'),(5,'contacts:a:contactType','string','e.g. technical or support'),(6,'contacts:a:emailAddress','string','email'),(7,'contacts:a:givenName','string','Given name of the contact'),(8,'contacts:a:surName','string','Surname'),(9,'contacts:a:telephoneNumber','string','Phone number'),(10,'contacts:a:company','string','Company name'),(11,'UIInfo:DisplayName:en','string','Display name (UIInfo)'),(12,'UIInfo:Description:en','string','Description (UIInfo)'),(13,'RegistrationInfo:authority','string','Registration authority'),(14,'RegistrationInfo:instant','date','Registraion instant (date format)'),(15,'RegistrationInfo:policies:en','string','Policy URL (en)');
INSERTINTO`options`VALUES(1,'OrganizationDisplayName','string','Organization Display name'),(2,'OrganizationName','string','Organization Name'),(3,'OrganizationURL','string','Organization URL'),(5,'contacts:a:contactType','string','e.g. technical or support'),(6,'contacts:a:emailAddress','string','email'),(7,'contacts:a:givenName','string','Given name of the contact'),(8,'contacts:a:surName','string','Surname'),(9,'contacts:a:telephoneNumber','string','Phone number'),(10,'contacts:a:company','string','Company name'),(11,'UIInfo:DisplayName:en','string','Display name (UIInfo)'),(12,'UIInfo:Description:en','string','Description (UIInfo)'),(13,'RegistrationInfo:authority','string','Registration authority'),(14,'RegistrationInfo:instant','date','Registration instant (date format)'),(15,'RegistrationInfo:policies:en','string','Policy URL (en)');
/*!40000 ALTER TABLE `options` ENABLE KEYS */;
UNLOCKTABLES;
--
-- Dumping routines for database 'testidp'
--
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
...
...
@@ -104,4 +108,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;