N
N
Ninja Mate2016-02-09 20:53:57
JavaScript
Ninja Mate, 2016-02-09 20:53:57

Can I have an example implementation of a request (?) WP + WP OAuth Server + SPA?

The internet is full of examples of how to get a post post and stuff with new wp features by adding ?access_token={the_access_token} to the request link. But here the problem is a bit different.
I have a react js application (client side script execution) and they have different databases with wp. How to implement requests to the application only from registered wp users from a special section of the site (./APP/admin/* and ./APP/user/*)? If you can article or lesson tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-02-09
@dimasmagadan

a small tutorial on how to make authorization for WP via OAuth is here
www.sitepoint.com/wp-api-and-oauth-using-wordpress...
it is a bit outdated, you don't need to install the plugin.
but the general course of action is about the same and remained

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question