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

     1  server "oauth2-options" {
     2    api {
     3      endpoint "/" {
     4        proxy {
     5          url = "https://example.com/"
     6  
     7          backend {
     8            oauth2 {
     9              token_endpoint = "{{.asOrigin}}/options"
    10              client_id      = "my_client"
    11              client_secret  = "my_client_secret"
    12              grant_type     = "password"
    13              username       = "user"
    14              password       = "pass"
    15              scope          = "scope1 scope2"
    16            }
    17          }
    18        }
    19      }
    20    }
    21  }