github.com/avenga/couper@v1.12.2/server/testdata/oauth2/18_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 = "{{.asOrigin}}/token1"
    17        client_id = "my_clid"
    18        grant_type = "urn:ietf:params:oauth:grant-type:jwt-bearer"
    19        assertion = []
    20      }
    21    }
    22  }