PHP Login

Added by Per G over 8 years ago

I am trying to implement the login code.
But I receive the following status: HTTP/1.1 401 Authorization Required
and in the JSON body: {"error":"Failed to verify user credentials"}

I am using the same username/password as when I'm login on https://api.test.nordnet.se/

I am implementing this in PHP and there are no example of login code for PHP. I have looked at the existing examples and tried to follow these examples as far as possible.

What does the JSON error message "Failed to verify user credentials" indicate?
Does this indicate that your server can decrypt the message and that the username/password is wrong?
Or could there be other problems in my message?


Replies (8)

RE: PHP Login - Added by Nordnet Simon over 8 years ago

Hi, sorry for the late reply. I looked in the logs and the username seems to be correct. We don't log password so I can't tell if it is the correct. But since username is correct it looks like it is the password. The encryption looks ok.
I don't know if the log entries was from your PHP or Ruby tries.

Have you changed your password here at https://api.test.nordnet.se/? The password change does not affect the testsystem so if you have changed your password here the password is still the old in the testsystem.

RE: PHP Login - Added by Per G over 8 years ago

Probably wrong password then..
How do I reset or change my password on the test system?

RE: PHP Login - Added by Nordnet Simon over 8 years ago

Hi, when the password is changed in the wiki it should be changed in the testsystem also. This is a bug. We are working on a solution.

RE: PHP Login - Added by Henning over 8 years ago

Hello Per

If you haven't figured out to log in using PHP, then take a look at my post: [[https://api.test.nordnet.se/boards/2/topics/283]]

https://royalcbd.com/washington-state/ - Added by website 19 days ago

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained!https://royalcbd.com/washington-state/

RE: PHP Login - Added by website 12 days ago

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.The Florence Residences Showflat

RE: PHP Login - Added by website 10 days ago

Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch. Thanks for that insight you provide the readers!the best DJ laptop stands

RE: PHP Login - Added by website 6 days ago

I think this is an informative post and it is very beneficial and knowledgeable. Therefore, I would like to thank you for the endeavors that you have made in writing this article. All the content is absolutely well-researched. Thanks...먹튀

(1-8/8)