Skip to content

Token authentication is broken #529

@ng-galien

Description

@ng-galien

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions