Closed (fixed)
Project:
Services
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2009 at 08:37 UTC
Updated:
29 May 2009 at 23:34 UTC
Jump to comment: Most recent file
Comments
Comment #1
Hugo Wetterberg commentedRebased the patch to the current DRUPAL-6--1 (#374827 by snelson: replace and, or with &&, ||)
Also fixed some stuff that didn't work properly in the last patch.
Comment #2
Hugo Wetterberg commentedI don't know if anyone keeps track of this issue or tests the patch. But here's the current status of the oauth branch as a diff.
Comment #3
marcingy commentedHugo we are going to be reviewing your patch at DC at the services code sprint http://groups.drupal.org/node/19535. Join us if you are in town.
Comment #4
Hugo Wetterberg commentedGreat! Unfortunately I won't be at the US drupalcon, but well do some long distance participation from Sweden. Looking forward to working with you all.
Comment #5
marcingy commentedHugo
Some comments about the patch as it stands:
* Don't like the fact that conditional logic is in hook_menu - all conditional menu callbacks should be in a seperate module. So we end up with a services_autheciation.module
* I would like it if we could register autheciation type and validation via a simple setting hook.
* This would remove the need for loading via a specific name string eg services-authentication
* All args to the validation method would be passed as an array of keyed arguments.
Comment #6
marcingy commentedComment #7
Hugo Wetterberg commentedOk, here's the new patch. Key authentication has been moved into a separate module and the authentication module registration is done as you suggested.
Cheers
/Hugo
Comment #8
Hugo Wetterberg commentedRemoved a debugging var_dump statement
Comment #9
marcingy commentedThanks I'll review this during my time at the airport :)
Comment #10
marcingy commentedThe patch seems to have a number of search service items in that seemed to have been rolled into the patch by accident. I'll still review but can you reroll without these extra files?
Comment #11
Hugo Wetterberg commentedOops, accidentally included #328764 in my patch. Fixed now.
Comment #12
voxpelli commentedThis is a nice feature - I hope it will get in so I'm subscribing to get the updates on it
Comment #13
Hugo Wetterberg commentedWell, here's the a updated patch that applies cleanly to the current head (#359519).
I hope that someone will get time to review this patch soon.
Comment #14
G43USUgppHFPQ commentedAre there any devs available to review Hugo's work?
It works fine for me and the code looks good in my eyes.
I would like to see it merged so I don't have to apply it manually with each release of Drupal.
Comment #15
PGiro commentedAny news on this so we can use OAuth with services ?
Comment #16
voxpelli commentedPGiro: I think that Hugo has got it all working but that the code needs a review, as all patches do, to go into the Services module. Perhaps any maintainer can answer of Services can answer the question better?
Comment #17
marcingy commentedAfter some crazy weeks at work this is on my list to review tomorrow.
Comment #18
PGiro commented@marcingy : how far did you get down your list ;)
Comment #19
marcingy commentedAfter discussions with heyrocker, snelson and robloach we have agreed that we get this in initially and then deal with stuff in follow up patches as required
* We need to provide a hook_service_alter which allows specific autheciation methods to add additional parameters there require - eg is the value part of the hash or can this be achieved through alter_method?
* Have made some minor style changes as per coder and code tough love.
* Moved the new module into an auth services_keyauth folder in case we decide to ship more authenication methods
* Have changed failures on browser so as no value is returned
* Have added method_name as part of the authenicate signature
Otherwise looks good and after testing we now have pluggable authenication :)
Comment #20
marcingy commentedComment #21
marcingy commented