wordpress Oauth2 refresh
-
Hello,
Hope you are having a great day. I am a newbie to wordpress universe, so please forgive me if this question is trivial. Searches haven’t given the information I am looking for.
I have a created an app and would like to authenticate using Oauth2. I have succeeded up to getting an authentication token so I can do all the rest APIs without any problem. No worries till here.The refresh token is valid only for 2 weeks. Now how would I be able to regenerate this refresh token without having to get access from user again. I have another application that let’s me generate refresh token from OAuth2 in this format.
data[‘grant_type’]=’refresh_token’;
data[‘refresh_token’]=API_TOKEN;
data[‘client_id’]=’XXX’;
data[‘client_secret’]=’SSSSS’;
data[‘redirect_uri’] = ‘RRRR’;..and when pointed at ..oauth2/token, it will give a new token that I can use. So i just do this every other day and I can continue to use my app perpetually without having the user to put credentials. When I try to do this with wordpress, it’s not accepting this grant_type. I see the documentation and it says..
“This token will allow you to make authenticated client side calls using CORS/Ajax requests. The token currently only lasts 2 weeks. Use the expires_in fragment to detect when you should prompt for a refresh.”
Is there an endpoint and a bunch of parameters that I could pass thru enabling me to regenerate token. Any help is greatly appreciated.
Best,
RGThe blog I need help with is: (visible only to logged in users)
-
That is NOT a wordpress.COM blog that you are referring to. This is the WordPress.COM support forum. You need to post to the WordPress.ORG support forum for help with your site because it is not hosted by WordPress.COM.
WordPress.com and WordPress.org are completely separate and different http://support.wordpress.com/com-vs-org/
If you don’t have a username account at WordPress.ORG click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post to the support forums there and receive advice from WordPress.ORG bloggers.
-
Just curious, how is this not a wordpress.com question? The blog is on wordpress.com, I am using .com API.
-
Sorry I missed the boat on this the first go-round. :(
I’ll tag this thread for a Staff follow-up. Please subscribe to the thread so you are notified when they respond and please be patient while waiting.
-
Hi there,
I went ahead and replied through private email to the address on file for your account. One of our developers will be taking a look soon and will reply through that thread. Please keep all additional correspondence there!
-
- The topic ‘wordpress Oauth2 refresh’ is closed to new replies.