WP-API / WP-API/OAuth2

Specify pre-defined client id and secrets?

Open
#60 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
175
Forks
45
Avg merge
17h 8m
Merged PRs (30d)
4

Description

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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how OAuth2 application settings are stored in wp_options and whether wp-config is currently read for client credentials. Determine whether multiple predefined applications can be represented without conflicts, then document the supported configuration or implementation requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.