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

     1  server "client" {
     2    api {
     3      endpoint "/cb" {
     4        access_control = ["ac"]
     5        response {
     6          json_body = request.context.ac
     7        }
     8      }
     9    }
    10  }
    11  definitions {
    12    beta_oauth2 "ac" {
    13      grant_type = "authorization_code"
    14      redirect_uri = "http://localhost:8080/cb" # value is not checked
    15      authorization_endpoint = "https://authorization.server/oauth2/authorize"
    16      token_endpoint = "{{.asOrigin}}/token"
    17      token_endpoint_auth_method = "client_secret_post"
    18      verifier_method = "ccm_s256"
    19      verifier_value = request.cookies.pkcecv
    20      client_id = "foo"
    21      client_secret = "etbinbp4in"
    22      error_handler {
    23        response {
    24          status = 418
    25        }
    26      }
    27    }
    28  }