Xero API authentication error on local host

Murray Brown
Murray Brown used Ask the Experts™
on
Hi

I am using my local host to authenticate into the Xero API

Dim myxerocallbackurl = "https://localhost:51970/Default.aspx"

but am getting the following error

oauth_problem=parameter_rejected&oauth_problem_advice=Callback%20url%20is%20not%20in%20the%20registered%20callback%20domain

what are the possible causes? In my Xero app do I have to specify the local host?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Sr. Software Engineer / Architect
Commented:
Yes, with OAuth you have to specify which URLs are valid for callback. I have not used Xero, but hopefully there is an area where you can enter your localhost URL as a valid (registered) callback URL and it should get you past this error message.
Murray BrownASP.net/VSTO Developer

Author

Commented:
Thanks very much
Dirk StraussSenior Full Stack Developer
Distinguished Expert 2017

Commented:
Have a look at this support article on the Xero Community: Does the api support oauth_callback?
It discusses the use of Localhost.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial