logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Nusoap-general digest, Vol 1 #871 - 3 msgs: msg#00028

Subject: Re: Nusoap-general digest, Vol 1 #871 - 3 msgs

I could be mistaken, but don't you defeat the purpose of SSL when you put username/password info in GET request?

soapclient("https://$proxyusername:$proxypassword@xxxxxxxxxxxx/SOAPSERVER.php?wsdl",true);

And if so, does
$client->setCredentials($proxyusername,$proxypassword);

set the client up to POST them instead of GET them?

Thanks.



-----------------------------

POST the username password

Message: 3
From: "I l" <isster@xxxxxxxxxxx>
To: Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Nusoap-general] User Authentication
Date: Thu, 07 Apr 2005 18:57:39 +0000

Ok, I figured out how to do authentication on apache.

You first modify your apache http.conf file to include this directive (you
can also use .htaccess file):

<Location /SOAPSERVER.php>
   AuthType Basic
   AuthName "SOAP Access"
   AuthUserFile /etc/httpd/conf/passwd/passwords
   require valid-user
</Location>

where SOAPSERVER.php is your soap server you want to protect and require
authentication.

"AuthUserFile" is the passowrd file that contains all the users and
passwords on apache. (you must use "htpasswd" to create this file)

"require valid-user"-means that the only people allowed to access your
SOAPSERVER.php are in passwords file.

Then on the client side, espcially if your website uses https, you would
write


$proxyusername = 'mike';
$proxypassword = 'pass2342';

$client = new
soapclient("https://$proxyusername:$proxypassword@xxxxxxxxxxxx/SOAPSERVER.php?wsdl",true);
$client->setCredentials($proxyusername,$proxypassword);

The above information is incomplete, but should at least get you started.
Use these links to help:

http://httpd.apache.org/docs-2.0/howto/auth.html
http://www.serviceobjects.com/forum/display_topic_threads.asp?ForumID=12&TopicID=58&PagePosition=1
<Prev in Thread] Current Thread [Next in Thread>