start implementing multiple modes for operation

- synapse: Only trigger register calls and do not store anything for longterm
- local: Provide an identity store and register to the own backend
This commit is contained in:
2018-04-15 21:20:01 +02:00
parent ffce2fc28b
commit f808615f22
9 changed files with 75 additions and 39 deletions

View File

@@ -11,7 +11,13 @@ $config = [
"webroot" => "https://myregisterdomain.net/",
// optional: Do you have a place where howTo's are located? If not leave this value out
"howToURL" => "https://my-url-for-storing-howTos.net",
// set the mode of operation. Basically this defines where the data is stored:
// - synapse (using the register endpoint - so no further auth config necessary
// - local (recommended; using a table in the database to store credentials;
// synapse has to be configured to use that)
"operationMode" => "local",
// When you want to collect the password on registration set this to true
// only evaluated when operationMode = local
"getPasswordOnRegistration" => false,
// to define where the data should be stored:
"databaseURI" => "sqlite:" . dirname(__FILE__) . "/db_file.sqlite",