Identifying UserName and password used

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,
 
P

Pablo Cibraro [MVP]

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.
 
A

Anbu

Pablo,

Thanks for your reply.

Setting up the anonymous access too provides these variables.

Thanks.
 
A

Anbu

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top