cuzyoucant commented on issue #7960:
URL: https://github.com/apache/pulsar/issues/7960#issuecomment-685795777


   After some even more debugging i narrowed it done even more.
   
   In the same file ServiceChannelInitializer.java line 85 to 89 when the 
AuthenticationFactory builds the Authentication Object with 
AuthenticationOAuth2.
   
![image](https://user-images.githubusercontent.com/26773084/91998075-15093600-ed3b-11ea-88b0-419beab66c16.png)
   
   After some testing i noticed that if i provide a dummy Object from 
AuthenticationDataOAuth2 with an invalid token as parameter the proxy starts up 
correctly. After the proxy gets its first request it checks the token, notices 
that it is not valid anymore and gets a new one.
   
![image](https://user-images.githubusercontent.com/26773084/92000729-2273ef80-ed3e-11ea-936d-21118382e59e.png)
   
   So the problem seems to be the Authentication Object from the 
AuthenticationFactory in line 91/92 returning an empty AuthenticationDataOAuth2 
Object when getAuthData() is called on it.


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

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


Reply via email to