From 491108c187a4a5b556d902eb2d93aba8834e00f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Wed, 21 Dec 2022 23:30:38 +0100 Subject: [PATCH] BAD_LOGIN_STATUS_CODE config param, default to 401 This config param is used by UsersHub-authentification-module to set response code on authentication failure. --- backend/geonature/utils/config_schema.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/geonature/utils/config_schema.py b/backend/geonature/utils/config_schema.py index 2ad1f467f6..196dc28680 100644 --- a/backend/geonature/utils/config_schema.py +++ b/backend/geonature/utils/config_schema.py @@ -204,6 +204,7 @@ class GnPySchemaConf(Schema): ACCOUNT_MANAGEMENT = fields.Nested( AccountManagement, load_default=AccountManagement().load({}) ) + BAD_LOGIN_STATUS_CODE = fields.Integer(load_default=401) USERSHUB = fields.Nested(UsersHubConfig, load_default=UsersHubConfig().load({})) SERVER = fields.Nested(ServerConfig, load_default=ServerConfig().load({})) MEDIAS = fields.Nested(MediasConfig, load_default=MediasConfig().load({}))