document:
  dsl: '1.0.0-alpha5'
  namespace: test
  name: oauth2-authentication-secret-client-credentials-params-endpoint
  version: '0.0.2'
do:
  - getPet:
      call: http
      with:
        method: get
        endpoint:
          uri: http://localhost:8081/hello
          authentication:
            oauth2:
              authority: http://localhost:8888/realms/test-realm
              endpoints:
                token: protocol/openid-connect/token
              grant: client_credentials
              request:
                encoding: application/x-www-form-urlencoded
              client:
                id: ${ .clientId }
                secret: ${ .clientSecret }
              issuers:
                - http://localhost:8888/realms/test-realm
