Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49206

Forking services.connect -- how to get rid of sessions ID requirement

$
0
0

I'm new to Drupal, but an experienced PHP programmer. Please forgive the newbie question.

I'm in the process of developing a web service to be accessed via mobile devices (iPhone / Android). I'm not using API key authentication, but am using sessions.

The system.connect method returns more information about the user object than I'd like to see returned (or even need), and I'd like to create a custom connect method as part of my service that can return a valid sessions ID and subsequently disable the system services and user services. However, when I forked the code from the system.connect method and placed that in a custom connection module, I am finding that I have to provide a valid sessions ID to get a response. The system.connect method has no such requirement.

How can I write a custom connect method that behaves like the system.connect method (i.e. drops the requirement for the sessions ID), without having to resort to modifying the system.connect method directly?

Any assistance or pointers would be greatly appreciated. Thanks!


Viewing all articles
Browse latest Browse all 49206

Trending Articles