github.com/avenga/couper@v1.12.2/server/testdata/oauth2/21_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 assertion = jwt_sign("ass", {}) 12 } 13 } 14 } 15 } 16 } 17 } 18 19 definitions { 20 jwt_signing_profile "ass" { 21 signature_algorithm = "HS256" 22 key = "asdf" 23 ttl = "10s" 24 claims = { 25 iss = "foo@example.com" 26 scope = "sc1 sc2" 27 aud = "https://authz.server/token" 28 iat = unixtime() 29 } 30 } 31 }