WP-API / OAuth2

Connect applications to your WordPress site without ever giving away your password.
GNU General Public License v2.0
172 stars 42 forks source link

Specify pre-defined client id and secrets? #60

Open binaryfire opened 5 years ago

binaryfire commented 5 years ago

Hi guys,

I'm developing a few mobile apps that will be used with multiple sites. I need a way to automate the creation of the same oauth2 app with the same client id and secret on all these sites. Is there a way I can specify these in wp-config, and for multiple apps?

Alternatively, would using wp-cli to create the necessary wp_options entries for each app work?

Thanks!