Trying to determine best strategy for web service security

From: M. Ferguson (macdaddy2_at_gmail.com)
Date: 10/07/04

  • Next message: Roman Kiss [MVP]: "Re: Does VS .Net support Web Service Eventing?"
    Date: 7 Oct 2004 11:49:42 -0700
    
    

    Hi all,

    I am new to WSE 2.0 and a little overwhelmed by the breadth of what's
    included, and I have a specific security situation for which I'm
    trying to determine the best strategy. Basically I know it's going to
    involve using WSE but I would appreciate comments and suggestions from
    people who know the framework better than I do.

    I have a group of web services which provide a facade for a COM+
    application, and I need to implement role-based authorization at the
    method level. The only clients of the web services will be ASP.NET
    apps calling them over SSL (or possibly even a trusted network), so I
    am not terribly worried about the integrity of the conversation.

    What I would like to have is an authentication web service that would
    be called with a UsernameToken based on a forms login at the ASP.NET
    app and on successful authentication would return something
    representing the authenticated principal including its roles. This
    structure would then be stored in the user's ASP.NET session and used
    to create a token which could be sent back to the web services with
    each call so that the services could then authorize the roles in the
    token against a policy for the method being called.

    I don't want to send a UsernameToken with every call to the facade
    because to authenticate against a database or directory and retrieve
    credentials with every call to the facade would add a lot of
    unnecessary overhead.

    Has anyone else implemented anything like this? I am pretty certain
    that I can figure out how to configure WS-Policy to allow/restrict
    roles, but I would appreciate any suggestions on how I should return
    my credentials from the authentication service and what kind of token
    I should use to pass them with the facade calls. Pointers, examples,
    suggested starting points for reading, or just being told that I can't
    get there from here, Bob would all be warmly received.

    thanks muchly,

    Mac Ferguson


  • Next message: Roman Kiss [MVP]: "Re: Does VS .Net support Web Service Eventing?"

    Relevant Pages

    • Re: Trying to determine best strategy for web service security
      ... I would check out the Hands On Labs for WSE 2.0. ... > I have a group of web services which provide a facade for a COM+ ... The only clients of the web services will be ASP.NET ... > What I would like to have is an authentication web service that would ...
      (microsoft.public.dotnet.framework.webservices.enhancements)
    • Re: Web Service and ASP.NET Forms Authentication
      ... Ok, so FormsAuth is out, the same is WSE because it is not supported on the ... so that leaves me with implementing my own basic auth module. ... Well - you could use WSE3 username tokens with SSL or basic authentication ... Is it possible to use ASP.NET Forms Authentication in Web Services? ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: WSE 2.0, smart client, Username authentication, no x.509
      ... I also prefer SCTs over UserTokens for authentication, ... > I dont know if WSE 2.0 SP 3 allows this I think it is only with the new ... > web services WSE 3.0 hosts them without a web server for you (read the WSE ...
      (microsoft.public.dotnet.framework.webservices.enhancements)
    • The signature or decryption was invalid.
      ... I've had this set of web services that use KerberosToken for authentication. ... known issue between W2K3 and WSE 2.0 that I'm not aware of? ... Tony ...
      (microsoft.public.dotnet.framework.webservices.enhancements)
    • Re: Windows Authentication, Single sign on and Active Directory
      ... your web server is probably a workgroup mode machine. ... Co-author of "The .NET Developer's Guide to Directory Services ... web service proxy client fails to connect due to authentication failure ... Windows authentication on the web services. ...
      (microsoft.public.dotnet.framework.aspnet.security)