AnTu2702 commented on PR #6900:
URL: https://github.com/apache/nifi/pull/6900#issuecomment-1975971033

   I debugged the AbstractEmailProcessor.java and it seems, that 
AbstractEmailProcessor.java does not handle token expiration at all. The 
StandardOAuth2AccessTokenProvider.Java does, but it would need the 
AbstractEmailProcessor.java to call the:
   
   oauth2AccessTokenProvider.getAccessDetails() 
   
   in the onTrigger() method instead the onSchedule() method to do so.
   
   
![image](https://github.com/apache/nifi/assets/5054213/40403a5b-3a2f-4174-a1a2-af204650bd0e)
   
   The AbstractEmailProcessor.java should be fixed to handle expired OAuth2 
access tokens!
   


-- 
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: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to