nodece opened a new pull request, #19461:
URL: https://github.com/apache/pulsar/pull/19461

   ### Motivation
   
   #6428 adds `allowTopicOperationAsync()` to check the topic authz abilities, 
it is a good solution, but this PR doesn't deprecate the old methods:
   
   - canProduceAsync
   - canConsumeAsync
   - canLookupAsync
   
   When users customize their own `AuthorizationProvider`,  they will be 
confused, so I decided to deprecate the old methods.
   
   ### Modifications
   
   - Deprecate `canProduceAsync`, `canConsumeAsync`, and `canLookupAsync` in 
the `AuthorizationProvider`, and add a default implementation
   -  Add back compatibility  to `allowTopicOperationAsync` to call the 
deprecated method
   - Uniformly use `allowTopicOperationAsync` to check permissions in the 
`AuthorizationService`
   - Fix failure tests
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   


-- 
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