github.com/avenga/couper@v1.12.2/server/testdata/integration/error_handler/03_couper.hcl (about)

     1  server "access_control" {
     2    endpoint "/" {
     3      access_control = ["ba"]
     4      response {
     5        status = 204
     6      }
     7    }
     8  }
     9  
    10  definitions {
    11    basic_auth "ba" {
    12      password = "couper"
    13  
    14      error_handler {
    15        request "another" {
    16          url = "https://as/foo"
    17          backend = "as"
    18        }
    19        response {}
    20      }
    21    }
    22    backend "as" {
    23      origin = "https://as"
    24      oauth2 {
    25        # grant_type = "missing attribute!"
    26        token_endpoint = "https://as/token"
    27        client_id = "my-id"
    28        client_secret = "my-secret"
    29      }
    30    }
    31  }