My use case involves installing a Forge app through my platform. Currently, the setup requires me to provide an app link in my frontend, which redirects the user to the Forge app installation page. However, this creates a challenge because I cannot reliably associate the user’s identity in Jira with the user identity I already have on my platform.
To address this issue, I’m considering installing the Forge app directly through my backend API instead. Is there a method or API available to accomplish this?
Have you considered making your platform be an OAuth 2 provider instead and then Forge can do all of that for you, including user association, via: https://developer.atlassian.com/platform/forge/runtime-reference/external-fetch-api/
Basis on what I understood, with this flow user will need to connect to jira using OAuth 2 flow and then install app too!?
The JIRA admin installs the app. The users just connect their individual Atlassian accounts with the equivalent account(s) in your system after that initial admin install.
That is how it works for all Atlassian apps. The JIRA admin is always the first step.