github.com/avenga/couper@v1.12.2/server/testdata/oauth2/07_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      configuration_ttl = "1h"
    16      client_id = "foo"
    17      client_secret = "etbinbp4in"
    18      redirect_uri = "http://localhost:8080/cb" # value is not checked
    19      scope = "profile email"
    20      verifier_method = "nonce"
    21      verifier_value = request.cookies.nnc
    22    }
    23  }