From 8bcba680ac0ad721e4ff0a58188c4e4911e11d9f Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Jun 05 2018 10:28:25 +0000 Subject: Switch default authentication to `local` Most setups aren't going to have any of the other methods available by default, and if they want to use it, it's easy enough to configure otherwise. Merges https://pagure.io/pagure/pull-request/3270 Signed-off-by: Neal Gompa Signed-off-by: Pierre-Yves Chibon --- diff --git a/doc/configuration.rst b/doc/configuration.rst index c01bb6d..738a961 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -783,7 +783,7 @@ Valid options are ``fas``, ``openid``, ``oidc``, or ``local``. * ``local`` causes pagure to use the local pagure database for user management. -Defaults to: ``fas``. +Defaults to: ``local``. OIDC Settings diff --git a/files/pagure.cfg.sample b/files/pagure.cfg.sample index 6a919f6..2179403 100644 --- a/files/pagure.cfg.sample +++ b/files/pagure.cfg.sample @@ -160,10 +160,10 @@ REDIS_DB = 0 # Authentication related configuration option ### Switch the authentication method -# Specify which authentication method to use, defaults to `fas` can be or -# `local` -# Default: ``fas``. -PAGURE_AUTH = 'fas' +# Specify which authentication method to use. +# Available options: `fas`, `openid`, `oidc`, `local` +# Default: ``local``. +PAGURE_AUTH = 'local' # When this is set to True, the session cookie will only be returned to the # server via ssl (https). If you connect to the server via plain http, the diff --git a/pagure/default_config.py b/pagure/default_config.py index 2450bb0..5465143 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -197,10 +197,10 @@ FROM_EMAIL = 'pagure@pagure.org' DOMAIN_EMAIL_NOTIFICATIONS = 'pagure.org' SALT_EMAIL = '' -# Specify which authentication method to use, defaults to `fas`, other -# possibilities are `local` or `oidc` -# Default: ``fas``. -PAGURE_AUTH = 'fas' +# Specify which authentication method to use. +# Available options: `fas`, `openid`, `oidc`, `local` +# Default: ``local``. +PAGURE_AUTH = 'local' # If PAGURE_AUTH is set to 'oidc', the following variables must be set: # The path to JSON file with client secrets (provided by your IdP)