From 15504f0f6525757749b3c29bdabfa64f4df5c88a Mon Sep 17 00:00:00 2001 From: Ivan Mrsulja Date: Tue, 21 Nov 2023 16:50:05 +0100 Subject: [PATCH 1/5] Added captcha configuration example. --- home/src/main/resources/config/example.runtime.properties | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home/src/main/resources/config/example.runtime.properties b/home/src/main/resources/config/example.runtime.properties index 0f22433b7..3ae4dea3e 100644 --- a/home/src/main/resources/config/example.runtime.properties +++ b/home/src/main/resources/config/example.runtime.properties @@ -455,3 +455,11 @@ createAndLink.providers = doi, pmid #fileUpload.maxFileSize = 10485760 #comma separated list of mime types allowed for upload #fileUpload.allowedMIMETypes = image/png, application/pdf + +# Captcha configuration. Available implementations are: DEFAULT (text-based) and RECAPTCHA +# If captcha.implementation property is not provided, system will fall back to DEFAULT implementation +# For RECAPTCHA method, you have to provide siteKey and secretKey. +# More information on siteKey and secretKey is available on: https://www.google.com/recaptcha +captcha.implementation = DEFAULT +#recaptcha.siteKey = +#recaptcha.secretKey = From 31421c936c936d5055ce4347ea91a4a801095fd9 Mon Sep 17 00:00:00 2001 From: Ivan Mrsulja Date: Fri, 15 Dec 2023 16:19:53 +0100 Subject: [PATCH 2/5] Updated captcha configuration. --- .../main/resources/config/example.runtime.properties | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/home/src/main/resources/config/example.runtime.properties b/home/src/main/resources/config/example.runtime.properties index 3ae4dea3e..9c712d51f 100644 --- a/home/src/main/resources/config/example.runtime.properties +++ b/home/src/main/resources/config/example.runtime.properties @@ -456,10 +456,15 @@ createAndLink.providers = doi, pmid #comma separated list of mime types allowed for upload #fileUpload.allowedMIMETypes = image/png, application/pdf -# Captcha configuration. Available implementations are: DEFAULT (text-based) and RECAPTCHA -# If captcha.implementation property is not provided, system will fall back to DEFAULT implementation +# Captcha configuration. Available implementations are: NANOCAPTCHA (text-based) and RECAPTCHA +# NANOCAPTCHA is available in 2 difficulties ('easy' and 'hard') +# If captcha.implementation property is not provided, system will fall back to NANOCAPTCHA implementation +# with easy diffuculty (if captcha is enabled) # For RECAPTCHA method, you have to provide siteKey and secretKey. # More information on siteKey and secretKey is available on: https://www.google.com/recaptcha -captcha.implementation = DEFAULT +captcha.enabled = true +captcha.implementation = NANOCAPTCHA +nanocaptcha.difficulty = hard #recaptcha.siteKey = #recaptcha.secretKey = + From 3cca9334c52d617c617cfc641dfdf7eda3cce1b3 Mon Sep 17 00:00:00 2001 From: Ivan Mrsulja Date: Fri, 15 Dec 2023 16:22:35 +0100 Subject: [PATCH 3/5] Added captcha feature toggle with difficulty setting. --- home/src/main/resources/config/example.runtime.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/home/src/main/resources/config/example.runtime.properties b/home/src/main/resources/config/example.runtime.properties index 9c712d51f..ad0568b9a 100644 --- a/home/src/main/resources/config/example.runtime.properties +++ b/home/src/main/resources/config/example.runtime.properties @@ -462,6 +462,7 @@ createAndLink.providers = doi, pmid # with easy diffuculty (if captcha is enabled) # For RECAPTCHA method, you have to provide siteKey and secretKey. # More information on siteKey and secretKey is available on: https://www.google.com/recaptcha +# Only RECAPTCHAv2 implementation is supported captcha.enabled = true captcha.implementation = NANOCAPTCHA nanocaptcha.difficulty = hard From 307df1bcf0769c4962183569f557377a91d9c3a6 Mon Sep 17 00:00:00 2001 From: Ivan Mrsulja Date: Tue, 19 Dec 2023 10:42:56 +0100 Subject: [PATCH 4/5] Updated configuration docs. --- .../main/resources/config/example.runtime.properties | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/home/src/main/resources/config/example.runtime.properties b/home/src/main/resources/config/example.runtime.properties index ad0568b9a..a5a331e4d 100644 --- a/home/src/main/resources/config/example.runtime.properties +++ b/home/src/main/resources/config/example.runtime.properties @@ -456,15 +456,15 @@ createAndLink.providers = doi, pmid #comma separated list of mime types allowed for upload #fileUpload.allowedMIMETypes = image/png, application/pdf -# Captcha configuration. Available implementations are: NANOCAPTCHA (text-based) and RECAPTCHA -# NANOCAPTCHA is available in 2 difficulties ('easy' and 'hard') -# If captcha.implementation property is not provided, system will fall back to NANOCAPTCHA implementation +# Captcha configuration. Available implementations are: nanocaptcha (text-based) and recaptchav2 +# nanocaptcha is available in 2 difficulties (easy and hard) +# If captcha.implementation property is not provided, system will fall back to nanocaptcha implementation # with easy diffuculty (if captcha is enabled) -# For RECAPTCHA method, you have to provide siteKey and secretKey. +# For recaptchav2 method, you have to provide siteKey and secretKey. # More information on siteKey and secretKey is available on: https://www.google.com/recaptcha -# Only RECAPTCHAv2 implementation is supported +# Only recaptchav2 implementation is supported captcha.enabled = true -captcha.implementation = NANOCAPTCHA +captcha.implementation = nanocaptcha nanocaptcha.difficulty = hard #recaptcha.siteKey = #recaptcha.secretKey = From a5a42f5784a897d67591d0c3dcd686d20f38cefd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20R=2E=20Mr=C5=A1ulja?= Date: Tue, 9 Jan 2024 16:11:01 +0100 Subject: [PATCH 5/5] Update home/src/main/resources/config/example.runtime.properties Co-authored-by: Georgy Litvinov --- home/src/main/resources/config/example.runtime.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/src/main/resources/config/example.runtime.properties b/home/src/main/resources/config/example.runtime.properties index a5a331e4d..28326c1cd 100644 --- a/home/src/main/resources/config/example.runtime.properties +++ b/home/src/main/resources/config/example.runtime.properties @@ -465,7 +465,7 @@ createAndLink.providers = doi, pmid # Only recaptchav2 implementation is supported captcha.enabled = true captcha.implementation = nanocaptcha -nanocaptcha.difficulty = hard +nanocaptcha.difficulty = easy #recaptcha.siteKey = #recaptcha.secretKey =