I have a web application that passes a Bearer token to a Web API application. That application then queues up a report to be run. Depending on how long the queue is, it may take 10 seconds or more than an hour until that report starts processing. that report needs to access other REST resources that are also secured using Azure AD OAuth.
So the flow is
Web Client --- Bearer Token ---> Web API ---> Queue ---> Report Processor --->
Token Acquired With Client Secret with UserAssertion ---> REST Data Source
Since the original Bearer token expires in 60 minutes, I need to be able to refresh the user's Bearer token at the actual time of report generation. Should I have the Web Client also pass along the actual Refresh Token when it requests to run a report?