Rishiom Shah Posted February 5 Share Posted February 5 Hello, I am trying to integrate Sage API for Sage Business Cloud Accounting subscription. I am doing this for running API based actions currently only within my organisation. Details of my setup: Registered a developer account on https://developerselfservice.sageone.com/ and created an App In the App settings added callback URL for local - "http://localhost:8000" as well as for Postman Using a separate email, registered a Trial Accounting Plus account (Ireland) here - https://developer.sage.com/accounting/quick-start/set-up-the-basics/ Upgraded the trial account by providing the App details to Sage Team - https://developer.sage.com/accounting/quick-start/upgrade-your-account/ To generate access token for use with Sage API requests, trying to complete oAuth flow using localhost and Postman as per - https://developer.sage.com/accounting/quick-start/ Testing & issue: Tried to Authorize the App using the Trial / organisation's account login details for the API - https://www.sageone.com/oauth2/auth/central?filter=apiv3.1 Authorization request is failing and I am unable to generate a Authorization code using both localhost & Postman setup After entering the login credentials and 2FA code, I still get an error The app doesn't go to the "Authorise application" page and directly goes to "Authorise Application Error" page (see attached screenshot) "Authorise Application Error" page is at URL - https://central.uk.sageone.com/errors/oauth-failed I have checked the browser console and network tabs but cannot find any information that may shed light on the issue Since I cannot get an Authorization code via oAuth, I can't generate an access token for API requests Trouble shooting steps: Checked the callback url is same on the App and the API request Followed the Troubleshooting oAuth issues here - https://developer.sage.com/accounting/guides/authenticating/oauth-troubleshooting/ Followed forum suggestion here - https://developer-community.sage.com/topic/683-authorize-application-error/ Queries: What could be the possible issue(s) in my setup and how do I debug and resolve them? Since initially I am planning to use the Sage API internally, can I generate access tokens directly without using oAuth? Please provide support on the issue as I have tested the setup several times without success and I need to get it working relatively quickly for automating actions for my organisation. Thank you in anticipation. Link to comment Share on other sites More sharing options...
Rishiom Shah Posted February 5 Author Share Posted February 5 For testing using code, I have used this resource - https://developer.sage.com/accounting/guides/authenticating/authentication/ Link to comment Share on other sites More sharing options...
Steel, Mark Posted February 6 Share Posted February 6 Hi Rishiom, We are aware of an issue with generated client_id guid's which are failing to pass a regex in our auth service. It sounds as if this could be the issue for yourself. We're hoping to push a fix live today 06/02/2024 to resolve the issue. If you DM me with the client_id you're using i'll be able to check if this is the issue. Thanks Mark Link to comment Share on other sites More sharing options...
Steel, Mark Posted February 6 Share Posted February 6 Hi Rishiom, The deployment of the fix will happen tomorrow afternoon(07/02/2024) GMT Thanks Mark Link to comment Share on other sites More sharing options...
Steel, Mark Posted February 7 Share Posted February 7 Hi Rishiom, The fix has now been deployed and the problem client_id's are now working. Thanks for your patience. Mark Link to comment Share on other sites More sharing options...
Rishiom Shah Posted February 7 Author Share Posted February 7 Thanks Mark, I am able to authorise with oAuth. Thanks for the fix. Rishiom 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