How let Automation work with Systems behind 2FA

Hello,

Some years back I built the Jira integration: GitHub - Bastian-Kuhn/jira-omnifocus: Native Plugin to Synchronize Jira Tickets with OmniFocus · GitHub

Now, I face a problem with more and more of my EU based consumers. Because of politics (forced to use the cloud in the future, then license prices), they plan to move away in the future. But what they have done until then (I guess preparing for the time the on-premise won’t get updates anymore and the case they haven’t yet migrated), they put a lot of protection in front of jira.

So the “worst” example, I just have to log in with 2FA on a (Citrix) page, then I authenticate on a following page to have Jira in my browser.

Now to the problem: How can I make my OmniFocus plugin work, since it needs the session of my browser now? Is there a way to make OmniFocus plugins use the browser to query data?

Thank you in advance,
Bastian