OAuth2
OAuth2 copied to clipboard
Docs are still for OAuth1
The documentation needs updating for OAuth2
https://github.com/WP-API/OAuth2/blob/master/docs/basics/Signing.md
Never mind. I found these : https://developer.wordpress.com/docs/oauth2/
Reopening this, since the documentation linked above is only for wordpress.com
Updated docs would be great!
Outside of the existing docs, it would be good to have info on the use of wp_safe_redirect() and how to filter the list of external hosts; the change from wp_redirect() to wp_safe_redirect() in https://github.com/WP-API/OAuth2/commit/02d47e566731e23524ee027c051606b5480c1028#diff-e60a82a0cee7b25ba6509ae636d516db broke functionality, and it took quite a bit of work to figure out I needed to hook into allowed_redirect_hosts to fix things. If you'd like, I can submit a PR to add info about this, but I'm not sure where it should live.