github.com/avenga/couper@v1.12.2/server/testdata/oauth2/04_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      client_id = "foo"
    18      client_secret = "etbinbp4in"
    19      verifier_method = "ccm_s256"
    20      verifier_value = request.cookies.pkcecv
    21    }
    22  }