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

     1  server "oauth2-options" {
     2    error_file = "./testdata/integration/server_error.html"
     3  
     4    api {
     5      error_file = "./testdata/integration/api_error.json"
     6  
     7      endpoint "/" {
     8        proxy {
     9          url = "https://example.com/"
    10  
    11          backend {
    12            oauth2 {
    13              token_endpoint = "{{.asOrigin}}/options"
    14              retries        = 0
    15              client_id      = "user"
    16              client_secret  = "pass"
    17              grant_type     = "client_credentials"
    18            }
    19          }
    20        }
    21      }
    22    }
    23  }