Forms Authentication across applications

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Forms Authentication across applications

    I've read the material on Forms Authentication and I've set this up for
    several websites without any problems. Basically there's 2 applications for
    each site.
    1. The "www" application for the non-secure pages - [url]http://www.domain.com[/url]
    2. The "secure" application for sensitive pages like checkout, login,
    tc - [url]https://secure.domain.com[/url]

    All sites follow this format. The application files are on physically
    seperate machines.

    Now the problem I'm having is that I'd like to use the Forms Authentication
    cookie to see whether the user has been authenticated on my "www" pages.
    However, it appears as if they haven't logged in. I had a look at the msdn
    article to set up authentication across appplications
    (
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconformsauthenticationcredentials.asp[/url] )
    but found the isolateApplications attribute doesn't exist??
    As you can see this isn't stated on the <machineKey> reference either:
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfmachinekeysection.asp[/url]

    Has anyone gotten forms authentication to work between 2 applications? I'd
    like to use SSL for my login page but it appears that won't work because the
    first part of the domain is different?


    Janaka Guest

  2. Similar Questions and Discussions

    1. Accessing htm files without authentication (forms authentication)
      I have application with forms authentication. All works fine. When user opens .aspx file gets login form, login and then get the .aspx page. But...
    2. Forms Authentication between web applications on the same server
      I have two web applications on the same server: http://localhost/ModemUpgrade and http://localhost/TestFormAuth The web.config of...
    3. ASP.Net Forms authentication with basic authentication popup
      Relatively new to ASP.Net but have a strange problem. My site uses forms authentication for a large administration section however after the user...
    4. Forms authentication then redirection to a secure web with NT authentication?
      Hi, I want to allow access to particular secured intranet web sites. These intranet are stored in sharepoint (2003 version) Actually I've...
    5. Authentication ticket, cookieless, forms authentication?
      Hi. I want to use Forms Authentication, cookieless. The issue is setting the Authentication Ticket without using cookies (!) That is, the...
  3. #2

    Default Re: Forms Authentication across applications

    You might have a cookie persistence issue with the your cross domain
    scenario. You have some good hints about this here:
    [url]http://www.codeproject.com/aspnet/aspnetsinglesignon.asp[/url].
    About the SSL certificate issue, you should have a cert. for
    secure.domain.com that is where your secure pages resides.
    The "isolateApplications" is not an attribute, its a modifier to the
    decryptionKey or validationKey attributes and the usage is as states on the
    machine key help.

    <machineKey validationKey="AutoGenerate,IsolateApps"
    decryptionKey="AutoGenerate,IsolateApps"
    validation="SHA1"/>
    The isolateApps option is specified to generate unique keys for each
    application on the server.Unfortunately, the sample of your first link is
    wrong.-- Hernan de LahitteLagash Systems S.A.[url]http://weblogs.asp.net/hernandl[/url]

    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Janaka" <janaka@magicalia.com> wrote in message
    news:uJiWjEoNEHA.2336@TK2MSFTNGP09.phx.gbl...
    > I've read the material on Forms Authentication and I've set this up for
    > several websites without any problems. Basically there's 2 applications
    for
    > each site.
    > 1. The "www" application for the non-secure pages -
    [url]http://www.domain.com[/url]
    > 2. The "secure" application for sensitive pages like checkout, login,
    > tc - [url]https://secure.domain.com[/url]
    >
    > All sites follow this format. The application files are on physically
    > seperate machines.
    >
    > Now the problem I'm having is that I'd like to use the Forms
    Authentication
    > cookie to see whether the user has been authenticated on my "www" pages.
    > However, it appears as if they haven't logged in. I had a look at the
    msdn
    > article to set up authentication across appplications
    > (
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconformsauthenticationcredentials.asp[/url] )
    > but found the isolateApplications attribute doesn't exist??
    > As you can see this isn't stated on the <machineKey> reference either:
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfmachinekeysection.asp[/url]
    >
    > Has anyone gotten forms authentication to work between 2 applications?
    I'd
    > like to use SSL for my login page but it appears that won't work because
    the
    > first part of the domain is different?
    >
    >

    Hernan de Lahitte Guest

  4. #3

    Default Re: Forms Authentication across applications

    Thanks I'll give this a go and see how it turns out.
    "Hernan de Lahitte" <hernan@lagash.com> wrote in message
    news:u6JBqcoNEHA.556@tk2msftngp13.phx.gbl...
    > You might have a cookie persistence issue with the your cross domain
    > scenario. You have some good hints about this here:
    > [url]http://www.codeproject.com/aspnet/aspnetsinglesignon.asp[/url].
    > About the SSL certificate issue, you should have a cert. for
    > secure.domain.com that is where your secure pages resides.
    > The "isolateApplications" is not an attribute, its a modifier to the
    > decryptionKey or validationKey attributes and the usage is as states on
    the
    > machine key help.
    >
    > <machineKey validationKey="AutoGenerate,IsolateApps"
    > decryptionKey="AutoGenerate,IsolateApps"
    > validation="SHA1"/>
    > The isolateApps option is specified to generate unique keys for each
    > application on the server.Unfortunately, the sample of your first link is
    > wrong.-- Hernan de LahitteLagash Systems
    S.A.[url]http://weblogs.asp.net/hernandl[/url]
    >
    > This posting is provided "AS IS" with no warranties, and confers no
    rights.
    >
    > "Janaka" <janaka@magicalia.com> wrote in message
    > news:uJiWjEoNEHA.2336@TK2MSFTNGP09.phx.gbl...
    > > I've read the material on Forms Authentication and I've set this up for
    > > several websites without any problems. Basically there's 2 applications
    > for
    > > each site.
    > > 1. The "www" application for the non-secure pages -
    > [url]http://www.domain.com[/url]
    > > 2. The "secure" application for sensitive pages like checkout, login,
    > > tc - [url]https://secure.domain.com[/url]
    > >
    > > All sites follow this format. The application files are on physically
    > > seperate machines.
    > >
    > > Now the problem I'm having is that I'd like to use the Forms
    > Authentication
    > > cookie to see whether the user has been authenticated on my "www" pages.
    > > However, it appears as if they haven't logged in. I had a look at the
    > msdn
    > > article to set up authentication across appplications
    > > (
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconformsauthenticationcredentials.asp[/url] )
    > > but found the isolateApplications attribute doesn't exist??
    > > As you can see this isn't stated on the <machineKey> reference either:
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfmachinekeysection.asp[/url]
    > >
    > > Has anyone gotten forms authentication to work between 2 applications?
    > I'd
    > > like to use SSL for my login page but it appears that won't work because
    > the
    > > first part of the domain is different?
    > >
    > >
    >
    >

    Janaka Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139