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

Validate args when checking authorisation code #17

Open rmccue opened 7 years ago

rmccue commented 7 years ago

Tokens\Authorization_Code::validate takes an $args parameter, but we a) don't pass any data in, and b) don't do anything with it. 🙃

Per the spec, we need to validate redirect_uri matched what was passed with the original authorisation request.

rmccue commented 7 years ago

(Noticed by @tfrommen in #8.)