Skip to main content
Participant
May 20, 2024

"oauth" permissions Incorrect

  • May 20, 2024
  • 1 reply
  • 128 views

We have added authorisation using the addOnSdk.app.oauth.authorize. 

with AUTHORIZATION_URL similar to https://narrato.io/adobe-app/configuration

When trying to use the Narrato Add on after creating a private listing, the pop up fails to load with 
Error: The "authorizationUrl" in the request does not match any entry in "oauth" permissions. To allow authorization, add the hostname of "authorizationUrl" to the "oauth" permissions array in the manifest.

Upon checking the source files and debugging, we see that the manifest object doesn't contain oauth array  and is later passed on to check for the domain name match which is failing. 
Can you look into whats going wrong. Manifest file attached.
This topic has been closed for replies.

1 reply

Participant
June 6, 2024

Hola,

 

I was having this same issue during local development and really couldn't figure out what I was doing wrong. My authorizationUrl's host name was 100% in my permissions.oauth array. I even tried copying the values from the [dropbox example](https://developer.adobe.com/express-add-ons/docs/guides/develop/#authorization-with-oauth-20) with no success

 

Eventually I just guessed that some part of the manifest build/bundle was being cached too aggressively

 

'Empty cache and hard reload' on Chrome managed to fix the problem for me