• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML-RPC using HTTP Basic Authentification

#1
[eluser]sramage[/eluser]
Hi !

I'm new in CI and I'm trying to replace a XML-RPC server and client written using this lib http://phpxmlrpc.sourceforge.net by CI XML-RPC classes.

I need some security around this server so I have implemented a little HTTP Basic authentication on the server by adding this on the server controler :

Code:
$user = $this->input->server('PHP_AUTH_USER');
    $password = $this->input->server('PHP_AUTH_PW');
    if ($user != $RPC_USER OR $password != $RPC_PASSWORD){
      Header('WWW-Authenticate: Basic realm="rpc"');
      Header('HTTP/1.0 401 Unauthorized');
      exit();
    }

it's works !

now I'm trying to make a client working, but it can't connect using something like "http://username:[email protected]/index.php/rpc"

How can I secure my server? is HTTP Authentification the solution? How make it to work ?

Thank you


Messages In This Thread
XML-RPC using HTTP Basic Authentification - by El Forum - 11-05-2008, 07:02 AM
XML-RPC using HTTP Basic Authentification - by El Forum - 11-06-2008, 07:35 AM
XML-RPC using HTTP Basic Authentification - by El Forum - 11-06-2008, 08:05 AM
XML-RPC using HTTP Basic Authentification - by El Forum - 11-06-2008, 08:43 AM
XML-RPC using HTTP Basic Authentification - by El Forum - 11-07-2008, 02:00 AM
XML-RPC using HTTP Basic Authentification - by El Forum - 06-04-2009, 08:44 PM
XML-RPC using HTTP Basic Authentification - by El Forum - 06-05-2009, 12:31 AM
XML-RPC using HTTP Basic Authentification - by El Forum - 07-28-2011, 06:06 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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