Describe the bug
We do not pass the auth data to the superuser role check, which will cause if the authorization provider needs to parse the superuser from the token, it will get an NPE.
https://github.com/apache/pulsar/blob/master/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/ComponentImpl.java#L1534
Describe the bug
We do not pass the auth data to the superuser role check, which will cause if the authorization provider needs to parse the superuser from the token, it will get an NPE.
https://github.com/apache/pulsar/blob/master/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/ComponentImpl.java#L1534