github.com/avenga/couper@v1.12.2/server/testdata/oauth2/06_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 = "state" 20 verifier_value = request.cookies.st 21 } 22 }