Groups | Blog | Home
all groups > dotnet web services enhancements > june 2006 >

dotnet web services enhancements : wse 3.0 Authenticate via Username/Password token (no windows secur


Martin Schönholzer
6/1/2006 7:36:02 AM
Hello all.

I was working through the labs (Messageing/Security) which are provided
on WSE 3.0 Page. All the samples where very clear and all worked fine.
But in these Samples if you want to use a Username/Password Policy, the
Credentials are automatically tested against Windows Accounts.

I want to check the Credentials manually on Service Side.
But if i use an Account which is not a valid Windows Account the service
generates an Error that something in the security header is missing.

Anyone has an idea how to make this work?
Gaurav Vaish (www.EduJini.IN)
6/2/2006 12:28:56 AM
Hi Martin,

[quoted text, click to view]

Check the following:
http://www.codeproject.com/webservices/WS-Security.asp

Although the code is in C++, but understanding it should not be a problem.

In a nutshell, you need to update the IPasswordProvider implementation.

--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------

Pablo Cibraro
6/2/2006 10:38:49 AM
Hi Martin,

In order to manually validate the credentials for an specific user, you have
to develop a custom UsernameTokenManager.
WSE provides a default implementation for a UsernameTokenManager that
validates the user and password against a valid windows account.
However, that class is extensible and provides many virtual methods to
customize that behavior.
This article in the MSDN explains how to build a custom UsernameTokenManager
in detail,

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/wss_ch3_impdirectauth_wse30.asp

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

"Martin Schönholzer" <MartinSchnholzer@discussions.microsoft.com> wrote in
message news:968DA331-DACF-43E9-92B0-1E29E7D6B236@microsoft.com...
[quoted text, click to view]

Martin Schönholzer
6/6/2006 5:57:02 AM
Hey!
Thanx to both of you for posting.

Big thx to Pablo, your post was exactly what i was searching for.
Have a nice week :)
Greets Martin.

[quoted text, click to view]
AddThis Social Bookmark Button