Recently, I encountered an issue with my Forge app related to adding certain scopes for the V2 API, which causes an endless loop in granting access.
The scopes I included in my manifest.yml
are:
read:embed:confluence
read:database:confluence
When these two scopes are added, the Forge app continuously prompts for access granting and does not proceed past this point.
Additionally, I receive the following error message in my terminal:
[NEEDS_AUTHENTICATION_ERR: Authentication Required] {
serviceKey: 'atlassian-token-service-key',
options: undefined,
status: 401
}
Appreciate it if anyone can assist on this issue.
1 Like
Hi @ScottWaiCheeTan, could you provide us with the appId for which you are having issues?
In addition are you seeing the issue with these scopes in particular? or is it happening in general for your app?
2 Likes
Hi @BoZhang, sure.
appId: ari:cloud:ecosystem::app/80a301ce-07e9-4c66-882a-e5d7aef8c84d
Iâm seeing these scopes in particular, when added these scope, the app will keep asking for granting the access.
I was trying it in a newly bootstrapped app using forge create, is a clean apps.
Hi @ScottWaiCheeTan, sorry for the delay and thank you for providing your appId. I had a look at our logs, and it seems that there is indeed an issue with these particular scopes. I will need to bring this up with the Confluence team. I will give you an update once it is fixed.
3 Likes
Hello, I was able to push some changes this morning and test it on my side. Can you confirm that the issue has been resolved on your side as well?
1 Like
@BoZhang anything require to upgrade from my machine? I updated the latest @forge/cli, the issue still remain from my side with the same behavior
I further tried out the changes by removing the access from my âconnected appsâ & reinstall the app.
right now the app didnât show the âallow accessâ looping anymore but it seen like it also didnât granted any access for the âsmart linkâ & is logging out
code: 401, message: 'Unauthorized; scope does not match'
the app is not asking me any consent for granting the access anymore.
Do you get this error when you are trying to call an API that requires the aforementioned scopes?
If that is the case, can you please provide the API that is causing this issue?
@BoZhang sorry about that, I make some mistakes on the API call link.
Is working fine now! I can get the information as expected now.
Thanks!
1 Like