github.com/dbernstein1/tyk@v2.9.0-beta9-dl-apic+incompatible/apps/coprocess_grpc_app_sample_protected.json (about)

     1  {
     2      "name": "Tyk Test API (Coprocess + gRPC)",
     3      "api_id": "7",
     4      "org_id": "default",
     5      "definition": {
     6          "location": "header",
     7          "key": "version"
     8      },
     9      "auth": {
    10          "auth_header_name": "authorization"
    11      },
    12      "use_keyless": true,
    13      "version_data": {
    14          "not_versioned": true,
    15          "versions": {
    16              "Default": {
    17                  "name": "Default",
    18                  "expires": "3000-01-02 15:04",
    19                  "use_extended_paths": true,
    20                  "extended_paths": {
    21                      "ignored": [],
    22                      "white_list": [],
    23                      "black_list": []
    24                  }
    25              }
    26          }
    27      },
    28      "proxy": {
    29          "listen_path": "/grpc-protected/",
    30          "target_url": "http://httpbin.org",
    31          "strip_listen_path": true
    32      },
    33      "enable_coprocess_auth": false,
    34      "custom_middleware_": {
    35        "pre": [
    36          {
    37            "name": "MyPreMiddleware",
    38            "require_session": false
    39          }
    40        ],
    41        "auth_check": {
    42          "name": "MyAuthCheck"
    43        },
    44        "id_extractor": {
    45          "extract_from": "form",
    46          "extract_with": "value",
    47          "extractor_config": {
    48            "param_name": "key"
    49          }
    50        },
    51        "id_extractor__": {
    52          "extract_from": "header",
    53          "extract_with": "regex",
    54          "extractor_config": {
    55            "header_name": "Authorization",
    56            "regex_expression": "[^\\\\-]+",
    57            "regex_match_index": 1
    58          }
    59        },
    60        "driver": "grpc",
    61        "session_lifetime": 35
    62      },
    63      "custom_middleware_bundle": "test-bundle",
    64      "enable_batch_request_support": true
    65  }