Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Redirect(authUrl); #17

Open
techgeeksquared opened this issue Jan 30, 2018 · 1 comment
Open

Issues with Redirect(authUrl); #17

techgeeksquared opened this issue Jan 30, 2018 · 1 comment

Comments

@techgeeksquared
Copy link

techgeeksquared commented Jan 30, 2018

I cannot get past this, the return Redirect(authUrl); fails and I get a XML message, "An error has occurred.". I'm connecting to the live server which is HTTPS. I verified the clientID as well as the other variables is the authUrl string. I verified the API Client setup on the live site is active and the call back url is: http://localhost:49676/token. When I change to debug and run nopcommerce with the api plugin locally it works, even if I use the same db as the live site. So I know it can create the authorization code. I'm pretty sure the issue is with getting it to refresh the token but, I can't get it past this point to refresh it. The return doesn't throw a direct exception, it continues on to the outer bracket and then throws the error on the api application's web page.

Any ideas are greatly appreciated.

2018-01-30 15_06_34-nopcommerce api debugging - microsoft visual studio

This image is after trying to use the RestSharp solution;

noperror

@supermarcos
Copy link

Did you manage to solve this problem? I'm using exactly the same code and I have exactly the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants