• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Phil Surgeon REST server library and how to work with keys for some requests only

#1
[eluser]Madoc[/eluser]
Hello,

I am currently working with Phil Sturgeon's REST server library and I got as far as handling requests and responses using the very useful "key" system for security.

Now I need to be able to handle some of the requests as public and some with the key protection. I can not find my way around doing that.

The key configuration settings are given on the rest.php config file of the library:

Code:
$config['rest_enable_keys'] = TRUE;

But I can not get my head around bypassing this for certain requests (i.e controller/method).

I tried to use the means available on the auth types:

Code:
$config['auth_override_class_method']['server']['persons'] = 'none';

but this did not work as I am guessing that the key system has nothing to do with http authentication.

Anyone have any idea ?


Messages In This Thread
Phil Surgeon REST server library and how to work with keys for some requests only - by El Forum - 07-27-2011, 10:24 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.