Opauth strategy for Tumblr authentication.
Implemented based on http://www.tumblr.com/docs/en/api/v2#auth
Opauth is a multi-provider authentication framework for PHP.
-
Install Opauth-Tumblr:
cd path_to_opauth/Strategy git clone git://github.com/jelled/opauth-tumblr.git Tumblr
-
Create a Tumblr application at http://www.tumblr.com/oauth/apps and set http://[path_to_opauth]/tumblr/oauth_callback as your default callback URL.
-
Configure Opauth-Tumblr strategy.
-
Direct user to
http://[path_to_opauth]/tumblr
to authenticate -
Now that you have the user's token and token_secret, use them with tumbler's official php library to create/edit/delete posts.
Required parameters:
<?php
'Tumblr' => array(
'consumer_key' => 'YOUR CLIENT ID',
'consumer_secret' => 'YOUR CLIENT SECRET'
)
Optional parameters:
scope
, response_type
For scope
, separate each scopes with a space(' ') and not a plus sign ('+'). Eg. likes comments
.
Opauth-Tumblr is MIT Licensed Copyright © 2013 Benjamin Bjurstrom (@benbjurstrom)