Xero API authentication error on local host

Murray Brown
Murray Brown used Ask the Experts™

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


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

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Sr. Software Engineer / Architect
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


Thanks very much
Dirk StraussSenior Full Stack Developer
Distinguished Expert 2017

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