[wp-trac] [WordPress Trac] #57510: /wp/v2/users/me returns rest_not_logged_in when using plain permalinks

WordPress Trac noreply at wordpress.org
Fri Jan 20 01:45:55 UTC 2023


#57510: /wp/v2/users/me returns rest_not_logged_in when using plain permalinks
--------------------------+-----------------------------
 Reporter:  clairedev     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTTP API      |    Version:  6.1.1
 Severity:  normal        |   Keywords:
  Focuses:  rest-api      |
--------------------------+-----------------------------
 I'm using an application password for basic authentication with an admin
 user. When permalinks are set to plain, calling /wp/v2/users/me always
 returns a 401 rest_not_logged_in. I'm calling it using the rest_route
 param like so: ?rest_route=/wp/v2/users/me and a simple curl request. When
 I change the permalinks to any other setting, the call succeeds. I can
 consistently recreate this issue on two different WP sites. Please fix!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57510>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list