The Generated Password
-
When I use this, I get a password that looks like this:
uyd6 2eRm 198d 6gJ9 0GvtF f0rL
Obviously, that is made up. Then I encode the string using the base64 command:
echo -n “admin@uyd6 2eRm 198d 6gJ9 0GvtF f0rL” | base64
I get back nice long string that I will represent like this: lkdfjalkdfjaldskjfaldkjf
So… when I use this in a curl statement, it looks like this:
curl –header “Authorization: Basic lkdfjalkdfjaldskjfaldkjf” https://mydomain.com/wp-json/wp/v2/users/me
I have also tried:
curl –header “Authorization: Basic lkdfjalkdfjaldskjfaldkjf” -X GET https://mydomain.com/wp-json/wp/v2/users/me
I expect to get my user information, but instead I get back a response that says “User not logged in.”
It seems like the authentication isn’t working but I don’t know how to test it.
Does it look like I am doing things correctly?
- The topic ‘The Generated Password’ is closed to new replies.