Skip to content

Commit

Permalink
BAD_LOGIN_STATUS_CODE config param, default to 401
Browse files Browse the repository at this point in the history
This config param is used by UsersHub-authentification-module
to set response code on authentication failure.
  • Loading branch information
bouttier committed Dec 21, 2022
1 parent b110cf9 commit 491108c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/geonature/utils/config_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({}))
Expand Down

0 comments on commit 491108c

Please sign in to comment.