OAuth 2.0 in emacs – Part 2

Back the basics.
Reading through the docs again I decided try and and authorise using this url first.
https://public-api.wordpress.com/oauth2/authorize?client_id=2194&redirect_uri=http://emacstragic.net&response_type=code
This takes me to a wordpress.com page to ask me to authorise.
So, then it started to make sense to me.

(oauth2-request-authorization "https://public-api.wordpress.com/oauth2/authorize" "2194" "" "" "http://emacstragic.net")

That above function launches your browser on the wordpress OAuth page and asks you to authorise the app to one of your blogs. It also prompts the user in emacs to enter the authorisation code the browser displays.
Screen Shot 2013-02-23 at 8.33.21 AM
But selecting my blog and hitting Authrorize gives me an error You must connect your Jetpack plugin to WordPress.com to use this feature. which is strange because it is already connected.

Leave a comment

Your email address will not be published. Required fields are marked *