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

     1  server {
     2    api {
     3      endpoint "/resource" {
     4        proxy {
     5          backend = "be"
     6        }
     7      }
     8    }
     9  }
    10  
    11  definitions {
    12    backend "be" {
    13      origin = "http://does.not.matter"
    14  
    15      oauth2 {
    16        token_endpoint = "http://1.2.3.4/token1"
    17        backend = "as_down"
    18        client_id = "my_clid"
    19        grant_type = "urn:ietf:params:oauth:grant-type:jwt-bearer"
    20        assertion = "a jwt string"
    21      }
    22    }
    23  
    24    backend "as_down" {
    25      origin = "http://1.2.3.4"
    26    }
    27  }