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

     1  server {
     2    api {
     3      endpoint "/" {
     4        proxy {
     5          url = "https://example.com/"
     6  
     7          backend {
     8            oauth2 {
     9              token_endpoint = "{{.asOrigin}}/options"
    10              grant_type     = "urn:ietf:params:oauth:grant-type:jwt-bearer"
    11              assertion      = request.method # easier for test purpose, should of course be a signed JWT
    12            }
    13          }
    14        }
    15      }
    16    }
    17  }