document:
  dsl: '1.0.0-alpha5'
  namespace: test
  name: openid-authentication-secret-password-grants
  version: '0.0.3'
do:
  - getPet:
      call: http
      with:
        method: get
        endpoint:
          uri: http://localhost:8881/hello
          authentication:
            oidc:
              authority: http://localhost:8888/realms/test-realm/protocol/openid-connect/token
              grant: password
              request:
                encoding: application/x-www-form-urlencoded
              client:
                id: ${ .clientId }
                secret: ${ .clientSecret }
              username: ${ .username }
              password: ${ .password }
              scopes:
                - pets:read
                - pets:write
                - pets:delete
                - pets:create
              audiences: [ serverless-workflow, another-audience, third-audience ]