Re: Implementing WSE

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Pretty simple to do this.. Create a subclass of the UsernameTokenManager.. override the Authenticate method and within that method try and compare the username and pwd with the one in the database. If they match return the client supplied pwd as the return. Else return a predefined pwd that does not match the client supplied pwd.
Another step you need to do is to configure the username token manager in the web.config.


An example of doing this can be found in [0]

[0] - http://www.devx.com/security/Article/18207/0/page/2

Nick wrote:
I am new to WSE... I have read over examples from Microsoft and others, but I am not able to get WSE to work. My client has an existing database of users and password that would like a new applicaiton. I can either use Remoting or Webservices with it. Regular web services work great and I could use them all day long but using them with WSE I get stuck. I am trying to take my existing webservice and secure it using the features of WSE such as usernametokes, message signing, and role based security (there is a table in the clients database that contains permissions/roles) Does anyone have an example of how I can do this or any articles that explain it? In theroy it sounds pretty easy and I saw an example of how to do it months ago, but at that time I was not using it at all. Also if possible can WSE do 2 way message signing such as from server -> client and client -> server? I would use windows authentication with this, but my client insists that we use the existing database of user accounts.



-- HTH Regards, Dilip Krishnan MCAD, MCSD.net dilip.krishnan AT apdiya DOT com .



Relevant Pages

  • had to elevate ASPNET account user rights assignment
    ... I have a client running in our office and asp.net web service ... I finally got the wse 2.0 enabled asp.net web service ... authenticate my username and password as cleartext? ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • SecurityContextToken is expected but not present
    ... I am a newbie to WSE and I am using WSE 3.0. ... server side certificate using makecert tool and added it to client side as ... username i get the favourite ... "Security requirements are not satisfied because the security header is not ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
    ... the username token to the message. ... I'm attempting to learn how to use WSE 3.0 with Visual Studio 2005. ... protected override string AuthenticateToken(UsernameToken token) ... The client is to be a smart client application. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Strange Problem with Authentication Has anyone ever run across
    ... Thank you VERY VERY VERY Much for your Help Anthony. ... workgroup, or from another domain, or with a different account - for example ... You might try rejoining the client to the domain, ... Some Drives Map the one on the Main DC does not but promps for username ...
    (microsoft.public.windows.server.general)
  • Re: Strange Problem with Authentication Has anyone ever run across
    ... No General client problems. ... Some Drives Map the one on the Main DC does not but promps for username ... on the Share permissions Administrators Full Control, ... Anthony, http://www.airdesk.com ...
    (microsoft.public.windows.server.general)