You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
AsafAzoulay
changed the title
HI, i want to use basic auth for a spesific register_rest_route and if i install your plugin it will allow all wp json route and its not good form me.
HI, i want to use basic auth for a specific register_rest_route and if i install your plugin it will allow all wp json routes and its not good for me, what i need to do? if i install your plugin it is open all wp json api and i dont want it, i want only my custom json api route... for example if i install your plugin users can get any rest json api url like this: /wp-json/wp/v2/users and i dont want to give access to this url... i want to give access only to /wp-json/rgb/events by register this route (register_rest_route()), what i need to do?
Jul 31, 2019
AsafAzoulay
changed the title
HI, i want to use basic auth for a specific register_rest_route and if i install your plugin it will allow all wp json routes and its not good for me, what i need to do? if i install your plugin it is open all wp json api and i dont want it, i want only my custom json api route... for example if i install your plugin users can get any rest json api url like this: /wp-json/wp/v2/users and i dont want to give access to this url... i want to give access only to /wp-json/rgb/events by register this route (register_rest_route()), what i need to do?
how can i do basic auth only for get data
Jul 31, 2019
I check for the endpoint using the $_SERVER['REQUEST_URI'] global variable and then abort authentication if the endpoint doesn't match one that I specifically whitelisted. This isn't guaranteed to work in every case - since some previous operation could change the value of that variable - but it works good enough for my use-case. I also added some brute force protections to further improve security
No description provided.
The text was updated successfully, but these errors were encountered: