gtsopour
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: rest api GET request wp-json/wp/v2/posts/ returns 403 errorForum: Plugins
In reply to: [JSON API] Protect Json queryHello @ikalangita,
did you find any workaround about this?Thanks
Forum: Plugins
In reply to: [JSON API] AuthenticationHello @dkardell,
did you find any solution on this?It seems that I need something similar. I need to access the recent posts for example DOMAIN/api/get_recent_posts/ but when the content is available only for authenticated users. I am not able to access the content. I tried something like this DOMAIN/api/get_recent_posts/?cookie=COOKIE using the JSON API AUTH https://ww.wp.xz.cn/plugins/json-api-auth/ but this didn’t work.
Best George
Forum: Plugins
In reply to: [JSON API Auth] Generate Auth Cookie for user authentication with AngularJSHello Ali,
thank you for your answer. I really appreciate that and you are absolutely right.I just changed my service to the following one and it is working properly:
$http({ method: 'POST', url: api_url + 'auth/generate_auth_cookie/?nonce=' + data.nonce + '&username=' + encodeURIComponent(username) + '&password=' + encodeURIComponent(password) }). success(function(data, status, headers, config) {}). error(function(data, status, headers, config) {});Thanks again
GeorgeForum: Plugins
In reply to: [JSON API Auth] Generate Auth Cookie for user authentication with AngularJSHello,
that status changed to resolved without any feedback. Could you please verify this?Best
George