wp-net / WordPressPCL

This is a portable library for consuimg the WordPress REST-API in (almost) any C# application
MIT License
338 stars 129 forks source link

Unable to authenticate when site uses plain permalinks #180

Open vainolo opened 4 years ago

vainolo commented 4 years ago

When performing a request to a site that uses plain permalinks (i.e. http://site/?p=123) the request fails returning "Sorry, you are not allowed to create posts as this user."

Fetching and validating the JWT token does work.

I have changed the route in this case from "wp-json/" to "?rest_route=/" as documented in the wordpress documentation, but the problem persists.

When testing the same site with the same configuration except the default permalinks it works.