-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathcoprocess_grpc_app_sample_protected.json
65 lines (65 loc) · 1.61 KB
/
coprocess_grpc_app_sample_protected.json
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
57
58
59
60
61
62
63
64
65
{
"name": "Tyk Test API (Coprocess + gRPC)",
"api_id": "7",
"org_id": "default",
"definition": {
"location": "header",
"key": "version"
},
"auth": {
"auth_header_name": "authorization"
},
"use_keyless": true,
"version_data": {
"not_versioned": true,
"versions": {
"Default": {
"name": "Default",
"expires": "3000-01-02 15:04",
"use_extended_paths": true,
"extended_paths": {
"ignored": [],
"white_list": [],
"black_list": []
}
}
}
},
"proxy": {
"listen_path": "/grpc-protected/",
"target_url": "http://httpbin.org",
"strip_listen_path": true
},
"enable_coprocess_auth": false,
"custom_middleware_": {
"pre": [
{
"name": "MyPreMiddleware",
"require_session": false
}
],
"auth_check": {
"name": "MyAuthCheck"
},
"id_extractor": {
"extract_from": "form",
"extract_with": "value",
"extractor_config": {
"param_name": "key"
}
},
"id_extractor__": {
"extract_from": "header",
"extract_with": "regex",
"extractor_config": {
"header_name": "Authorization",
"regex_expression": "[^\\\\-]+",
"regex_match_index": 1
}
},
"driver": "grpc",
"session_lifetime": 35
},
"custom_middleware_bundle": "test-bundle",
"enable_batch_request_support": true
}