I'm finding myself significantly challenged with implementing the Oauth module. I have Services (7 dev) producing a content api (through the contentapi module). The api itself works great but I obviously want some authentication on it.
All of the request_token/authorize/access_token pages produce white screens with no error generated, even in the Apache logs.
The Authorization tab from the user page takes me to user/1/oauth which just has an empty table with headers: Application Key Created Expires Operations
I am able to access user/1/oauth/consumer/ and generate a token and secret, but no other user can request one.
I cannot get the keys then to work in a URL test.
I'm sure there is something simple I'm missing. I thank you in advance for your help.
Export of Context:
$context = new stdClass;
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 1;
$context->name = 'content_api';
$context->title = 'Content API';
$context->authorization_options = array(
'access_token_lifetime' => 0,
'page_title' => 'Content API',
'message' => 'Authorize',
'warning' => 'Warning',
'deny_access_title' => 'Not Authorized',
'grant_access_title' => 'Granted',
'disable_auth_level_selection' => 1,
'signature_methods' => array(
0 => 'HMAC-SHA1',
1 => 'HMAC-SHA256',
2 => 'HMAC-SHA384',
3 => 'HMAC-SHA512',
),
'default_authorization_levels' => array(
0 => 'api_user',
),
);
$context->authorization_levels = array(
'api_user' => array(
'name' => 'api_user',
'title' => 'API User',
'default' => 1,
'delete' => 0,
'description' => '',
),
);
Comments
Comment #1
joel_osc CreditAttribution: joel_osc commentedI am seeing this too...any updates would be appreciated.
Comment #2
jobeirne CreditAttribution: jobeirne commentedYour context looks okay. Trying pulling the latest development version of 7.x-3.0, as I'm pretty sure this issue has been fixed by the last few commits. Please write back if this isn't the case.
Comment #3
jethro CreditAttribution: jethro commentedI'm having this same issue on the drupal 6 version.
Edit:
Turns out my consumer key wasn't quite right.
Comment #4
jobeirne CreditAttribution: jobeirne commentedComment #5
devkinetic CreditAttribution: devkinetic commentedUpdate: Here is this issue for 6.x #1536852: WSOD on oauth/request_token