Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-2637

[QE] Allow example clients in SystemTests to use different secrets per producer/consumer

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • kafka-clients
    • None
    • False
    • False
    • Undefined

      Put together following example code

      KafkaOauthExampleClients oauthInternalClientProducerJob = new KafkaOauthExampleClients.Builder()
              .withProducerName(OAUTH_CLIENT_AUDIENCE_PRODUCER)
              .withBootstrapAddress(KafkaResources.bootstrapServiceName(oauthClusterName) + ":" + customClaimListenerPort)
              .withTopicName(TOPIC_NAME)
              .withMessageCount(MESSAGE_COUNT)
              .withOAuthClientId(OAUTH_CLIENT_AUDIENCE_PRODUCER)
              .withOAuthClientSecret(OAUTH_CLIENT_AUDIENCE_SECRET)
              .withOAuthTokenEndpointUri(keycloakInstance.getOauthTokenEndpointUri())
              .build();
      
      KafkaOauthExampleClients oauthInternalClientConsumerJob = new KafkaOauthExampleClients.Builder()
              .withConsumerName(OAUTH_CLIENT_AUDIENCE_CONSUMER)
              .withBootstrapAddress(KafkaResources.bootstrapServiceName(oauthClusterName) + ":" + customClaimListenerPort)
              .withTopicName(TOPIC_NAME)
              .withMessageCount(MESSAGE_COUNT)
              .withOAuthClientId(OAUTH_CLIENT_AUDIENCE_CONSUMER)
              .withOAuthClientSecret(OAUTH_CLIENT_AUDIENCE_SECRET)
              .withOAuthTokenEndpointUri(keycloakInstance.getOauthTokenEndpointUri())
              .build(); 

              mtoth@redhat.com Michal Toth
              mtoth@redhat.com Michal Toth
              Michal Toth Michal Toth
              Lukas Kral
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: