From 5c9d6a5396eb43739eb1c17540228c20a16f4554 Mon Sep 17 00:00:00 2001 From: bpatath <62777491+bpatath@users.noreply.github.com> Date: Fri, 19 Jun 2020 23:01:19 +0200 Subject: Add auto-registration when using http_auth (#3003) * Add auto-registration when using http_auth * Document HTTP auth auto-registration * Check email variable for HTTP auth auto-registration * Auto-create HTTP users by default * Fix Context init (I will provide in another PR a better fix requiring a bit of global refactoring) * Init language Co-authored-by: Alexandre Alapetite --- config.default.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'config.default.php') diff --git a/config.default.php b/config.default.php index 49869f7ac..b55aca9ad 100644 --- a/config.default.php +++ b/config.default.php @@ -55,6 +55,13 @@ return array( # and in particular not protect `/FreshRSS/p/api/` if you would like to use the API (different login system). 'auth_type' => 'form', + # When using http_auth, automatically register any unknown user + 'http_auth_auto_register' => true, + + # Optionally, you can specify the $_SERVER key containing the email address used when registering + # the user (e.g. REMOTE_USER_EMAIL). + 'http_auth_auto_register_email_field' => '', + # Allow or not the use of the API, used for mobile apps. # End-point is https://freshrss.example.net/api/greader.php # You need to set the user's API password. @@ -102,7 +109,7 @@ return array( # Max number of categories for a user. 'max_categories' => 16384, - # Max number of accounts that anonymous users can create + # Max number of accounts that anonymous users can create (only for Web form login type) # 0 for an unlimited number of accounts # 1 is to not allow user registrations (1 is corresponding to the admin account) 'max_registrations' => 1, -- cgit v1.2.3