github.com/avenga/couper@v1.12.2/server/testdata/settings/21_couper.hcl (about)

     1  server {
     2    endpoint "/" {
     3      proxy {
     4        backend = "rs"
     5  	}
     6    }
     7  }
     8  
     9  definitions {
    10    backend "rs" {
    11      oauth2 {
    12        token_endpoint = "http://as.com/token"
    13        backend = "as"
    14  	  grant_type = "client_credentials"
    15  	  client_id = "xyz"
    16  	  client_secret = "xyz"
    17      }
    18    }
    19  
    20    backend "as" {
    21      beta_token_request {
    22        url = "http://vault.com/key"
    23  	  token = "xyz"
    24  	  ttl = "1h"
    25  	  backend = "rs"
    26      }
    27    }
    28  }