Would be nice to add captcha support. If you tried login one time and it fails, that you can show a captcha. I know you can block the IP with fail2ban or crowdsec, but a more human way would be to solve the captcha.
I know there is something for that in the web-vault, but never tried it. Also not sure which provider is used and what can be configured.
Bitwarden server uses hCaptcha
{
response.Success = true;
return response;
}
var httpClient = _httpClientFactory.CreateClient("HCaptchaValidationService");
var requestMessage = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://hcaptcha.com/siteverify"),
Content = new FormUrlEncodedContent(new Dictionary<string, string>
{
{ "response", captchaResponse.TrimStart("hcaptcha|".ToCharArray()) },
{ "secret", _globalSettings.Captcha.HCaptchaSecretKey },
{ "sitekey", SiteKey },
{ "remoteip", clientIpAddress }
})
};
HttpResponseMessage responseMessage;
1 Like