-
Notifications
You must be signed in to change notification settings - Fork 8
/
HCaptchaOptions.cs
40 lines (33 loc) · 1.05 KB
/
HCaptchaOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright © Benjamin Abt 2020-2024, all rights reserved
namespace BenjaminAbt.HCaptcha;
/// <summary>
/// hCaptcha Options
/// </summary>
/// <remarks>https://docs.hcaptcha.com/</remarks>
public class HCaptchaOptions
{
/// <summary>
/// hCaptcha Site Key
/// </summary>
public string SiteKey { get; set; } = "";
/// <summary>
/// hCaptcha Site Secret
/// </summary>
public string Secret { get; set; } = "";
/// <summary>
/// The HTTP Post Form Key to get the token from
/// </summary>
public string HttpPostResponseKeyName { get; set; } = "h-captcha-response";
/// <summary>
/// if true client IP is passed to hCaptcha token verification
/// </summary>
public bool VerifyRemoteIp { get; set; } = true;
/// <summary>
/// Full Url to hCaptchy JavaScript
/// </summary>
public string JavaScriptUrl { get; set; } = "https://hcaptcha.com/1/api.js";
/// <summary>
/// The hCaptcha base URL
/// </summary>
public string ApiBaseUrl { get; set; } = "https://hcaptcha.com/";
}