Hi @maximilian,
Sorry, that isn’t possible today. Only functions that are directly invoked by the user will contain the user context and therefor have the ability to utilise the asUser API function call. This means that webtriggers, scheduled triggers, product events and asynch events are restricted to asApp api calls only.
My team has been exploring introducing this feature for product events, but not yet asynch events.
I have raised [FRGE-805] - Ecosystem Jira for this based on your above feedback. Feel free to add any additional comments/feedback to this ticket in what you would like to see here.
Cheers,
Sam.
Same question, is there any news around? asApp currently doesn’t support withProvider method to perform external auth for GDrive, for example on Async API. So, I have a kinda blocker here.
It’s possible to create some strange workaround by changing entity status flags, notifying the front-end part, and adding logic to “resend direct action request” from FE, once the status is updated to “I need to make a call to external API”, but it feels like the kinda wrong way of interaction.