Craig Bowler Posted August 16, 2021 Share Posted August 16, 2021 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: Any help would be much appreciated! Thanks! Link to comment Share on other sites More sharing options...
Steel, Mark Posted August 16, 2021 Share Posted August 16, 2021 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 Link to comment Share on other sites More sharing options...
Craig Bowler Posted August 17, 2021 Author Share Posted August 17, 2021 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 Link to comment Share on other sites More sharing options...
Steel, Mark Posted August 17, 2021 Share Posted August 17, 2021 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 Link to comment Share on other sites More sharing options...
Mahnoor Zia Posted April 9 Share Posted April 9 Hi Mark and Craig, Did you guys find any solution to that problem? I am also currently facing the same problem. Thanks Mahnoor Link to comment Share on other sites More sharing options...
Steel, Mark Posted April 9 Share Posted April 9 Hi @Mahnoor Zia, What problem are you referring to please? The problem Craig experienced was due to the correct callback urls not being registered against his app. The solution was to add the correct callback in the app registry. https://developer.sage.com/accounting/guides/authenticating/oauth-troubleshooting/ Thanks Mark Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now