Identifying UserName and password used

  • Thread starter Thread starter Anbu
  • Start date Start date
A

Anbu

Hi All,

I'm hosting WSE 3.0 SoapService based web service, which uses Basic
authentication. Since, it's implemented from SoapService, a receiver
function receives the soapenvelope.

Client posts the soapenvelope using HTTP POST method. How can I get the
username and password used by the client?

What will happen if my web service is set to anonymous access enabled
and a user credential is passed along with the HTTP POST method?

TIA,
 
Hi Anbu,

If you are using HTTP Basic authentication, you can get the current
credentials from the http headers,

Request.ServerVariables("AUTH_USER")
Request.ServerVariables("AUTH_PASSWORD")

If anonymous access is enabled, I am not sure if the client will send those
headers.
 
Pablo,

Thanks for your reply.

Setting up the anonymous access too provides these variables.

Thanks.
 
Pablo,

Thanks for your reply.

Setting up the anonymous access too provides these variables.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top