How to get access to the confluence page from the jira forge app?
I see the already created topic but there is no answer (Scope does not match when creating Confluence page from jira app)
I have added confluence perm scopes to the Jira Forge app manifest.
Forge Cli asked me to do the next
We detected your app requires scopes across multiple products.
Run forge install for each of the following:
- forge install -p Confluence -s darkskyplatform.atlassian.net -e development
After all the above steps I got {"code":401,"message":"Unauthorized; scope does not match"}
Also after execute forge install -p Confluence -s darkskyplatform.atlassian.net -e development
the app was installed to the confluence - it is not acceptable because the app should support only jira but not confluence
The short answer is you cannot. That would mean getting access to Confluence without authorization. Which is why the app must be installed into both products.
What about access through oath like in AC apps, is it possible?
@Alexandr,
I don’t know the “through OAuth” model for Atlassian Connect. The Atlassian recommendation for cross-product in Atlassian Connect is also install app into each product.
Also, Forge’s access model is different for arbitrary HTTP requests. The Forge runtime itself controls HTTP requests, so even if you wire up Confluence for an OAuth flow using an external OAuth 2.0 API with fetch, the runtime will not allow you to specify Atlassian APIs for the permissions.external.fetch.backend
. The Forge way to access Atlassian APIs is with the runtime-provided product fetch APIs.
This gap is a known issue. I advise watch, vote, and comment on FRGE-983.
I am talking about https://developer.atlassian.com/cloud/confluence/oauth-2-3lo-apps/
and I got what you mean.
I see only one way - make a third-party service for connecting between Jira and confluence inside the forge app.
- from jira forge app go to → foobar.com
- authenticate in a confluence
- put OAuth tokens to the jira forge secret storage
jira app → {foobar.com} → confluence