-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturnstile.php
56 lines (52 loc) · 2.17 KB
/
turnstile.php
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
return [
/*
|--------------------------------------------------------------------------
| Turnstile keys
|--------------------------------------------------------------------------
|
| To start using the Turnstile widget, you will need to obtain a sitekey
| and a secret key. The sitekey and secret key are always associated
| with one widget and cannot be reused for other widgets.
|
| https://developers.cloudflare.com/turnstile/get-started/
|
*/
'sitekey' => env(key: 'TURNSTILE_SITE_KEY'),
'secretkey' => env(key: 'TURNSTILE_SECRET_KEY'),
/*
|--------------------------------------------------------------------------
| Status
|--------------------------------------------------------------------------
|
| This option allows you to enable or disable turnstile. This is useful
| when testing your application. Disabling ensure your tests runs
| smoothly. remember to enable once you are done testing.
|
*/
'enabled' => env(key: 'TURNSTILE_ENABLED', default: true),
/*
|--------------------------------------------------------------------------
| Field name
|--------------------------------------------------------------------------
|
| This is the name of the turnstile validation field from your front-end
| application. Failure to include the field in the request will cause
| a runtime exception. This is precautionary measure.
|
*/
'field' => env(key: 'TURNSTILE_FIELD', default: 'cf-turnstile-response'),
/*
|--------------------------------------------------------------------------
| Turnstile Site Verify Url
|--------------------------------------------------------------------------
|
| This is the cloudflare endpoint that is used to verify the turnstile
| token. You must must call the siteverify endpoint to validate the
| Turnstile widget response
|
| Learn more: https://developers.cloudflare.com/turnstile/get-started/server-side-validation/
|
*/
'url' => env(key: 'TURNSTILE_URL', default: 'https://challenges.cloudflare.com/turnstile/v0/siteverify'),
];