Open GoogleCodeExporter opened 9 years ago
Here's a way to add two-legged OAuth to the OAuth_Server class:
class OAuth_Server {
public function verify_two_legged(&$request) {
$this->get_version($request);
$consumer = $this->get_consumer($request);
// no token required for two-legged request
$token = NULL;
$this->check_signature($request, $consumer, $token);
return array($consumer, $token);
}
}
Original comment by foregro...@gmail.com
on 9 Dec 2010 at 4:03
We in the Sakai project and IMS need the two legged scenario to work and so it
has forced us to make our own copy of the source code and fix this simple bug.
It would be nice to have this fixed properly so we could simply depend on the
binary artifacts.
Original comment by drchuck
on 10 Jan 2011 at 11:07
Here is our bug tracking number in Sakai:
https://jira.sakaiproject.org/browse/BLTI-65
Original comment by drchuck
on 10 Jan 2011 at 11:08
Original comment by morten.f...@gmail.com
on 29 Mar 2011 at 4:31
This patch will add support for the Consumer Request draft spec:
http://drupalcode.org/project/oauth.git/commitdiff/b969757d5d6fb52f66560eea10a72
99f1d81729b?hp=30741c8812e480ae63f2c7fc220c0981d631996a
The draft spec:
http://oauth.googlecode.com/svn/spec/ext/consumer_request/1.0/drafts/2/spec.html
Original comment by VoxPe...@gmail.com
on 25 May 2011 at 4:51
For 2-legged oauth, you can make the lookup_token method return an empty
OAuthToken. E.g.:
function lookup_token($consumer, $token_type, $token) {
if ($token_type === 'access' && empty($token)) {
return new OAuthToken('', '');
}
return null;
}
Original comment by hub...@muchlearning.org
on 14 Nov 2011 at 6:23
Original issue reported on code.google.com by
nicklev...@gmail.com
on 11 Oct 2010 at 2:16