github.com/avenga/couper@v1.12.2/server/testdata/oauth2/08_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 beta_oauth2 "ac" { 14 grant_type = "authorization_code" 15 redirect_uri = "/cb" # value is not checked 16 authorization_endpoint = "https://authorization.server/oauth2/authorize" 17 token_endpoint = "{{.asOrigin}}/token" 18 client_id = "foo" 19 client_secret = "etbinbp4in" 20 verifier_method = "ccm_s256" 21 verifier_value = request.cookies.pkcecv 22 } 23 } 24 25 settings { 26 accept_forwarded_url = [ "proto", "host" ] 27 }