Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NewConfigWithBearerAuthentication BearerAuthCredentialsSource using STATIC_TOKEN, after token expire, schema registry not work #1302

Open
7 tasks done
xyz5881 opened this issue Sep 24, 2024 · 0 comments

Comments

@xyz5881
Copy link

xyz5881 commented Sep 24, 2024

Description

How to reproduce

Using oauthClientId and oauthSecretId to generate the oauthToken and pass the value to NewConfigWithBearerAuthentication, then set up the schemaRegistryClient. After the oauthToken is expired, the schemaRegistryClient also expired. Hope there is a way to pass in clientid and secret, or it's hard to refresh schemaRegistry every time when we get a new token - since it's set as STATIC_TOKEN

Checklist

Please provide the following information:

  • confluent-kafka-go and librdkafka version (LibraryVersion()): v2.5.3
  • Apache Kafka broker version: n/a
  • Client configuration: _ = configMap.SetKey(keySecurityProtocol, securityProtocolSaslSsl) _ = configMap.SetKey(keySaslMechanism, saslMechanismOAuthBearer) _ = configMap.SetKey(keySaslOAuthClientID, clientID) _ = configMap.SetKey(keySaslOAuthClientSecret, clientSecret) _ = configMap.SetKey(keySaslOAuthTokenEndpointURL, tokenURL) _ = configMap.SetKey(keySaslOAuthMethod, saslOAuthBearerMethodOIDC) _ = configMap.SetKey(keySaslOAuthScope, saslOAuthBearerScopeUser) _ = configMap.SetKey(keySaslOAuthExtensions, fmt.Sprintf("%s=%s,%s=%s", optionLogicalCluster, clusterID, optionIdentityPoolID, identityPoolID))
  • Operating system: macOS
  • Provide client logs (with "debug": ".." as necessary) error: schema registry request failed error code: 401: Unauthorized](error: schema registry request failed error code: 401: Unauthorized)
  • Provide broker log excerpts n/a
  • Critical issue n/a
@xyz5881 xyz5881 changed the title NewConfigWithBearerAuthentication BearerAuthCredentialsSource using STATIC_TOKEN NewConfigWithBearerAuthentication BearerAuthCredentialsSource using STATIC_TOKEN, after token expire, schema registry not work Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants