tuteng opened a new issue, #20938:
URL: https://github.com/apache/pulsar/issues/20938

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   2.10, 2.11, 3.0 and master
   
   ### Minimal reproduce step
   
   Enabled anonymousUserRole, authentication and authorization plugin
   Set authorizationProvider value is 
org.apache.pulsar.broker.authorization.MultiRolesTokenAuthorizationProvider
   
   ```
   curl http://localhost:8080/admin/v2/tenants
   ```
   
   Throws 401 exception:
   ```
   Unauthorized to validateTenantOperation for originalPrincipal [admin] and 
clientAppId [admin] about operation [LIST_NAMESPACES] on tenant [xxxxx]
   ```
   
   ### What did you expect to see?
   
   No exceptions are thrown
   
   ### What did you see instead?
   
   Throws 401 exception:
   ```
   Unauthorized to validateTenantOperation for originalPrincipal [admin] and 
clientAppId [admin] about operation [LIST_NAMESPACES] on tenant [xxxxx]
   ```
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to