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

Token authentication is broken #529

Closed
ng-galien opened this issue Dec 20, 2023 · 2 comments
Closed

Token authentication is broken #529

ng-galien opened this issue Dec 20, 2023 · 2 comments

Comments

@ng-galien
Copy link

Since org.apache.pulsar.client.impl.auth.AuthenticationToken does not handle configure(Map<String, String> authParams)

We cannot use this plugin as it's documented

spring:
  pulsar:
    client:
      authentication:
        plugin-class-name: org.apache.pulsar.client.impl.auth.AuthenticationToken
        param:
          token: some-token-goes-here
 WARN- 23-12-20 19:59:39.966 1351900-[r-client-io-1-5] o.a.p.c.i.ClientCnx                       : [localhost/127.0.0.1:6650] Got exception java.lang.RuntimeException: failed to get client token
	at org.apache.pulsar.client.impl.auth.AuthenticationDataToken.getToken(AuthenticationDataToken.java:64)
	at org.apache.pulsar.client.impl.auth.AuthenticationDataToken.<init>(AuthenticationDataToken.java:36)

The doc must be updated and or parameters injection must be adjusted.

Also reported in this issue on Pulsar repo.

@onobc
Copy link
Collaborator

onobc commented Dec 20, 2023

Hi @ng-galien this has been fixed in #500 and will be available w/ the release of Spring Boot 3.2.1 tomorrow (2023-12-21).

The auto-configuration piece is in Spring Boot and was updated spring-projects/spring-boot#38839

@ng-galien
Copy link
Author

@onobc great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants