PHP Login

Added by Per G almost 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 (4)

RE: PHP Login - Added by Nordnet Simon almost 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 almost 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 almost 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 almost 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]]

(1-4/4)