Skip to content

Call to undefined method RdKafka\KafkaConsumer::oauthbearerSetToken() #580

Open
@bdurkovic

Description

@bdurkovic

Description

The following code:

<?php
                $conf->setOauthbearerTokenRefreshCb(function ($consumer) {
                    $token = $someCorrectTokenValue;
                    $consumer->oauthbearerSetToken($token, $tokenExpiry, 'principalClaimName=azp');
                });

Resulted in this output:

Call to undefined method  RdKafka\KafkaConsumer::oauthbearerSetToken()

But I expected that I can set an OAUTHBEARER token to the consumer.

Am I doing something wrong or is this not supported? As the same code works perfectly for the producer side.

php-rdkafka Version

php-rdkafka 6.0.5

librdkafka Version

No response

PHP Version

PHP 8.4

Operating System

No response

Kafka Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions