About Best practices...

From: Claude Vernier (ClaudeVernier_at_discussions.microsoft.com)
Date: 09/23/04

  • Next message: Michael: ".NET Authentication problem"
    Date: Thu, 23 Sep 2004 08:03:05 -0700
    
    

    Hi,

    I'd like to have some advice to set our security procedure.
    I've read several blogs and articles and now know several methods and
    techniques.

    What I need is some code details and best practices.
    I have two scenarios. All this is in Web applications and XML Web Services
    in C# and .Net.

    My web site is outside the domain while the Web services are inside so, I
    can't pass Username Token, right?

    1. Users will log to my web site from any platform.
    So, the only way I found to authenticate my users is to let them create an
    account with login/password. This account is used only for a shopping basket
    feature and to keep some preferences.
    So, there is no need to use certificate or passport.
    What I thought is, ask the password and store it encrypted inside the
    database with no way to decrypt it.

            My questions are:
                    - does this design seem ok?
                    - To encrypt the password, I need a public key?
                            -- If yes, it must be created and saved somewhere? Where?
                            -- should it be saved with special encoding?

    2. My web site consumes a web service (WS) that is developed inside the
    house but on which I have no control. This WS requires a login, domain and
    encrypted password to be passed. The way it is working is in 3-phases.

            a) Client ask for public key to server
            b) Client encrypt password using public key
            c) Client ask for session id (used in other WS) using encrypted password
            d) Server decrypts the password and test that those credentials are valid.
            e) Server delivers a SessionID
            f) Client uses this SessionID to ask methods from another WS.
            
            My questions are:
                    - This design is not perfect but it's what exist for the moment.
    The main reason was to map outside users to inside users and impersonate it,
    what are the best practices for this?
                    - The encrypt/decrypt processes must be done with public/private keys?
                            -- If yes, it must be created and saved somewhere? Where?
                            -- should it be saved with special encoding?

    If you could give me some pointers on all this, thank you very much.
    English is not my first language, so please excuse me for some mistakes...
    Do not hesitate to correct me or ask for details.

    Thanks a lot in advance, have a nice day.
    Claude


  • Next message: Michael: ".NET Authentication problem"

    Relevant Pages

    • Re: IE Explorer 6.0 Locking Up On A Web Page Account
      ... "nass" wrote: ... on a web page, the account is not a secure https web site, but just a ... The thing is that if you go to this web site and browse through the ... regsvr32 urlmon.dll ...
      (microsoft.public.windowsxp.general)
    • Re: IE Explorer 6.0 Locking Up On A Web Page Account
      ... on a web page, the account is not a secure https web site, but just a ... The thing is that if you go to this web site and browse through the ... Checked out the IE settings, which are set to default settings. ... regsvr32 urlmon.dll ...
      (microsoft.public.windowsxp.general)
    • Re: Manually Created Web Site Does Not Work - What am I Missing?
      ... For each different Web site ... have the same name or folder structure as my VS project. ... The ASP.NET Dev Server runs as the Administrator account in VS 2008. ...
      (microsoft.public.dotnet.framework.aspnet)
    • RE: Management Point not available
      ... > configured the Default Web Site within IIS 6 to use port 8080. ... Manually restart the SMS Agent Host service on the MP. ... MP encountered an error when connecting to SQL Server. ... If using a standard SQL security account, ...
      (microsoft.public.sms.admin)
    • Re: Windows Forms
      ... A few of my web sites use online CMS with AJAX. ... All my databases have stored procedures and I would like to use ... services from your web site, and then have a proxy on the client which will ... it is called directly from the ASP.NET app, or through web services by your ...
      (microsoft.public.dotnet.languages.csharp)

    Loading