all groups > dotnet web services enhancements > september 2005 >
You're in the

dotnet web services enhancements

group:

SoapClient authentication


SoapClient authentication LucasC
9/29/2005 2:48:03 PM
dotnet web services enhancements:
Hi,
I'm trying to use WSE through a Proxy class generated with WseWsdl2 in order
to be independent from the transport protocol. My service is implemented
through a ASP.Net Web Service (with WSE).
I'm trying to authenticate users (like I used to do with Intergrated
Security in IIS and Network Credentials in the client for the standard Web
Services).
Is there any way to do that? Ijust want to allow only Windows authenticated
users to use my service but without loosing the flexibility of the trsnaport
protocol independence.

Thanks a lot
--
Re: SoapClient authentication LucasC
9/30/2005 8:06:01 AM
Hi Pablo,
Thanks for the answer. I have some doubts about that.
My application doesn't know the username and password (everything works with
Integrated Security) so I don't have the password to create the
UserNameToken. Is there any way to use it without requesting the user
password to the user?

If I derive my service from SoapService, is it possible to implement it as
ASMX (standard Web Service)? or Do I have to make mayor changes?

Thanks a lot.


--
LucasC


[quoted text, click to view]
Re: SoapClient authentication Pablo Cibraro
9/30/2005 10:43:30 AM
Hi Lucas,
The answer is yes. First all, your service must derive from SoapService in
order to make it independent from the transport protocol as well.
Regarding to the authentication question, you can do that using an
UsernameToken as client token.
The default UsernameTokenManager shipped in WSE authenticates user against a
valid windows account (Using the API "LogonUser" ),
so in that case it works as Windows authentication.

Regards,
Pablo Cibraro
www.lagash.com


[quoted text, click to view]

Re: SoapClient authentication LucasC
9/30/2005 12:03:04 PM
Hi Pablo,
Is there any way to use something like Intergrated Security in the same way
you set default Network Credentials?
Thanks a lot
--
LucasC


[quoted text, click to view]
Re: SoapClient authentication Pablo Cibraro
9/30/2005 1:32:40 PM
Hi Lucas,
If you don't have the password, you might create a usernametoken without a
password. (You will have to implement a custom UsernameTokenManager to
accept tokens without a password)
In that case, to avoid "non-repudiation" attacks, you will need to encrypt
and sign the message with a X509 Cert and only accept messages protected
with that certificate.
Yes, it's possible to publish a SoapService as an ASMX , you will have to
configure it as a HttpHandler.

Regards,
Pablo Cibraro
www.lagash.com

[quoted text, click to view]

Re: SoapClient authentication Pablo Cibraro
10/2/2005 9:25:53 PM
Sorry Lucas,
I forgot to mention something, you can use a kerberos token instead (The
current user's credentials will flow to the server).
It will work as Integrated Security in that way.

Regards,
Pablo.

[quoted text, click to view]

AddThis Social Bookmark Button