-
Notifications
You must be signed in to change notification settings - Fork 86
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
Can´t authenticate anymore #68
Comments
have you solved your issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not able to authenticate the Rest Client anymore. It worked for a while but suddenly it run into an authentication error...
I have 3 different instances of Magento working.
1* Live system -> Enterprise (1.14.3.6)
2* Dev system -> Enterprise (1.14.3.6)
3* clean instance of magento community (1.9.2.4)
At first, I´ve tried this Api on our Dev system which worked perfectly for almost 4 hours... Then the described error above occured.
I´ve double checked the REST settings in magento and the credentials as well. Everything is set correctly.
After some testing and debugging with Fiddler I came to multiple results to our different systems...
Here are my result
Live System:
I´ll receive the oauth Token and the corresponding confirmAuthorizeUrl.
The issue here is that the Authorize Landing page, where I have to associate the Application with my account, is the login page...
So if the RestApi is trying to get the oauth_authorize_confirm Form, it will result into null and the described error above occures.
" var formElement = authorizePage.GetElementbyId("oauth_authorize_confirm");
if(authorizePage.DocumentNode.InnerText.Contains("Invalid User Name or Password") || formElement == null) throw new MagentoApiException(string.Format("The provided admin username '{0}' or password is invalid. The user needs to be a Magento admin.", _userName));"
Dev System:
Same Fiddler result as the live system but there is one big issue.
The oauthToken is null all the time.
Clean instance:
Everything works fine! - No problems at all...
*Here´s the Fiddler session for the clean instance
This is my code, I am using
There´s a huge difference in the Fiddler log between live+dev vs. clean magento...
I don´t know what this issue could be, cause it worked for a couple of hours before.
Anyone an idea?
The text was updated successfully, but these errors were encountered: