Jump to content

Recommended Posts

Posted

Hi All,

I am currently developing an integration for Sage, but am having issues with the OAuth authentication. I have signed up for a trial Sage Cloud account, as well as a developer account and created an applicable app along with its relevant credentials.

I have tried both through Postman using your documentation, and through my script I have written, but after logging in on the initial OAuth setup, it shows the following:
1158612131_Screenshot2021-08-13at14_39_27.thumb.png.05386d154043c9704886c4e7a65a8f0b.png

Any help would be much appreciated!

Thanks!

Posted

Hi Craig, thank you for your question.

When registering your application, what callback url did you use? If you're using POSTMAN you'll need to register the POSTMAN callback URL in addition to any callback url registered for your own app. From your description, it would seem that the Auth code is not being returned to the callback url  meaning the  POST to exchange the auth code for an access token cannot be made successfully. 

POSTMAN app = https://www.postman.com/oauth2/callback

POSTMAN web UI = https://oauth.pstmn.io/v1/browser-callback

Thanks

Mark

Posted

Hi Mark,

Thanks for your reply, I was unaware that I needed to also include the Postman callback URL in the App as well - I have done this, but it also hasn't worked. I have also been attempting the OAuth via the script I have been writing, and it ends up with the same authorisation error!

Thanks

Posted

Thanks for letting me know Craig.

I've sent a PM to arrange a suitable time to troubleshoot your issue. We'll need to look at the client ID and secret  which is best not shared here.

I look forward to hearing from you.

Thanks

Mark

  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...