github.com/avenga/couper@v1.12.2/server/testdata/oauth2/22_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}}/token"
    10              grant_type     = "urn:ietf:params:oauth:grant-type:jwt-bearer"
    11              jwt_signing_profile {
    12                signature_algorithm = "HS256"
    13                key = "asdf"
    14                ttl = "10s"
    15                claims = {
    16                  iss = "foo@example.com"
    17                  scope = "sc1 sc2"
    18                  aud = "https://authz.server/token"
    19                  iat = unixtime()
    20                }
    21              }
    22            }
    23          }
    24        }
    25      }
    26    }
    27  }