Skip to content

Commit

Permalink
Remove OauthbearerOIDCApp
Browse files Browse the repository at this point in the history
  • Loading branch information
jliunyu committed Nov 21, 2021
1 parent 86d5cd5 commit 9cb5063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/rdkafka_sasl_oauthbearer_oidc.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ void rd_kafka_oidc_token_refresh_cb(rd_kafka_t *rk,
double exp;

cJSON *json = NULL;
cJSON *parsed_token, *payloads, *jwt_exp, *jwt_sub;
cJSON *payloads = NULL;
cJSON *parsed_token, *jwt_exp, *jwt_sub;

rd_http_error_t *herr;

Expand Down
8 changes: 0 additions & 8 deletions tests/interactive_broker_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from trivup.apps.ZookeeperApp import ZookeeperApp
from trivup.apps.KafkaBrokerApp import KafkaBrokerApp
from trivup.apps.KerberosKdcApp import KerberosKdcApp
from trivup.apps.OauthbearerOIDCApp import OauthbearerOIDCApp
from trivup.apps.SslApp import SslApp

from cluster_testing import read_scenario_conf
Expand Down Expand Up @@ -43,9 +42,6 @@ def test_version(version, cmd=None, deploy=True, conf={}, debug=False,

cluster = Cluster('LibrdkafkaTestCluster', root_path, debug=debug)

if args.conf.get('oidc_method') == 'OIDC':
oidcapp = OauthbearerOIDCApp(cluster)

# Enable SSL if desired
if 'SSL' in conf.get('security.protocol', ''):
cluster.ssl = SslApp(cluster, conf)
Expand Down Expand Up @@ -122,10 +118,6 @@ def test_version(version, cmd=None, deploy=True, conf={}, debug=False,
os.write(
fd, ('sasl.oauthbearer.scope=test\n'.encode(
'ascii')))
cmd_env['VALID_OIDC_URL'] = oidcapp.conf.get('valid_url')
cmd_env['INVALID_OIDC_URL'] = oidcapp.conf.get('badformat_url')
cmd_env['EXPIRED_TOKEN_OIDC_URL'] = oidcapp.conf.get(
'expired_url')
else:
os.write(
fd, ('enable.sasl.oauthbearer.unsecure.jwt=true\n'.encode(
Expand Down

0 comments on commit 9cb5063

Please sign in to comment.