[wp-trac] [WordPress Trac] #40494: /wp-json/wp/v2/users/me api endpoint (it's part of the core now) returns 401 not logged in
WordPress Trac
noreply at wordpress.org
Fri Apr 21 05:23:03 UTC 2017
#40494: /wp-json/wp/v2/users/me api endpoint (it's part of the core now) returns
401 not logged in
--------------------------+------------------------------
Reporter: asudakov | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7.3
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by asudakov):
* status: new => closed
* resolution: => invalid
Comment:
@danielbachhuber @swissspidy thanks for info.
Now I got it:
there is a nonce system.
So, it's a feature, not a bug.
And I had "REST API – OAuth 1.0a Server" + "REST API" to submit posts to
WP from another application. It stopped working. But now I see nonce
passed back from OAuth. And I checked it works with REST API and /users/me
endpoint.
Btw, you don't have /user/me described in your docs at:
https://developer.wordpress.org/rest-api/reference/users/#retrieve-a-user
and all
"Arguments"
"Definition"
"Example Request"
anchors are the same and incorrect for not list users sections.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40494#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list