github.com/avenga/couper@v1.12.2/server/testdata/oauth2/09_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  
    12  definitions {
    13    oidc "ac" {
    14      configuration_url = "{{.asOrigin}}/.well-known/openid-configuration"
    15      client_id = "foo"
    16      client_secret = "etbinbp4in"
    17      redirect_uri = "/cb" # value is not checked
    18      scope = "profile email"
    19      verifier_method = "nonce"
    20      verifier_value = request.cookies.nnc
    21    }
    22  }
    23  
    24  settings {
    25    accept_forwarded_url = [ "proto", "host" ]
    26  }