github.com/avenga/couper@v1.12.2/server/testdata/oauth2/01_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 word"
    17              grant_type     = "client_credentials"
    18              scope          = "scope1 scope2"
    19              token_endpoint_auth_method = "client_secret_post"
    20            }
    21          }
    22        }
    23      }
    24    }
    25  }