{
  "services": [
    {
      "protocol": "http",
      "host": "backend.com",
      "port": 80,
      "path": "/path",
      "name": "Security_Example",
      "plugins": [],
      "routes": [
        {
          "methods": ["GET"],
          "strip_path": false,
          "tags": ["OAS3_import", "OAS3file_security.yaml"],
          "name": "Security_Example-only-oath2-get",
          "plugins": [
            {
              "config": { "auth_methods": ["client_credentials"] },
              "name": "openid-connect",
              "tags": ["OAS3_import", "OAS3file_security.yaml"]
            }
          ],
          "paths": ["/only/oath2$"]
        },
        {
          "methods": ["GET"],
          "strip_path": false,
          "tags": ["OAS3_import", "OAS3file_security.yaml"],
          "name": "Security_Example-only-key-get",
          "plugins": [
            {
              "config": { "key_names": ["api_key_by_me"] },
              "name": "key-auth",
              "tags": ["OAS3_import", "OAS3file_security.yaml"]
            }
          ],
          "paths": ["/only/key$"]
        },
        {
          "methods": ["GET"],
          "strip_path": false,
          "tags": ["OAS3_import", "OAS3file_security.yaml"],
          "name": "Security_Example-and-based-auth-get",
          "plugins": [
            {
              "config": { "auth_methods": ["client_credentials"] },
              "name": "openid-connect",
              "tags": ["OAS3_import", "OAS3file_security.yaml"]
            }
          ],
          "paths": ["/and/based/auth$"]
        },
        {
          "methods": ["GET"],
          "strip_path": false,
          "tags": ["OAS3_import", "OAS3file_security.yaml"],
          "name": "Security_Example-or-based-auth-get",
          "plugins": [
            {
              "config": { "key_names": ["api_key_by_me"] },
              "name": "key-auth",
              "tags": ["OAS3_import", "OAS3file_security.yaml"]
            }
          ],
          "paths": ["/or/based/auth$"]
        },
        {
          "methods": ["GET"],
          "strip_path": false,
          "tags": ["OAS3_import", "OAS3file_security.yaml"],
          "name": "Security_Example-only-oidc-get",
          "plugins": [
            {
              "config": {
                "scopes_required": ["write:pets"],
                "issuer": "http://example.org/oid-discovery"
              },
              "name": "openid-connect",
              "tags": ["OAS3_import", "OAS3file_security.yaml"]
            }
          ],
          "paths": ["/only/oidc$"]
        },
        {
          "methods": ["GET"],
          "strip_path": false,
          "tags": ["OAS3_import", "OAS3file_security.yaml"],
          "name": "Security_Example-only-basic-get",
          "plugins": [
            {
              "name": "basic-auth",
              "tags": ["OAS3_import", "OAS3file_security.yaml", "should match"],
              "config": { "hide_credentials": true }
            }
          ],
          "paths": ["/only/basic$"]
        }
      ],
      "tags": ["OAS3_import", "OAS3file_security.yaml"]
    }
  ],
  "_format_version": "1.1"
}
