github.com/avenga/couper@v1.12.2/server/testdata/oauth2/1_retries_couper.hcl (about) 1 server "api" { 2 error_file = "./testdata/integration/server_error.html" 3 4 api { 5 error_file = "./testdata/integration/api_error.json" 6 7 endpoint "/" { 8 proxy { 9 backend { 10 origin = "{{.rsOrigin}}" 11 path = "/resource" 12 13 oauth2 { 14 token_endpoint = "{{.asOrigin}}/oauth2" 15 client_id = "user" 16 client_secret = "pass" 17 grant_type = "client_credentials" 18 } 19 } 20 } 21 } 22 23 endpoint "/2nd" { 24 proxy { 25 backend { 26 origin = "{{.rsOrigin}}" 27 path = "/resource" 28 29 oauth2 { 30 client_id = "user" 31 client_secret = "pass" 32 grant_type = "client_credentials" 33 backend { 34 origin = "{{.asOrigin}}" 35 path = "/oauth2" 36 } 37 } 38 } 39 } 40 } 41 42 endpoint "/password" { 43 proxy { 44 backend { 45 origin = "{{.rsOrigin}}" 46 path = "/resource" 47 48 oauth2 { 49 token_endpoint = "{{.asOrigin}}/oauth2" 50 client_id = "my_client" 51 client_secret = "my_client_secret" 52 grant_type = "password" 53 username = "user" 54 password = "pass word" 55 } 56 } 57 } 58 } 59 } 60 } 61 62 settings { 63 no_proxy_from_env = true 64 }