Forms Authentication w/SubFolders

From: JTR (jtrichard_at_sotasw.com)
Date: 07/29/03

  • Next message: Yan-Hong Huang[MSFT]: "RE: Forms Authentication- Browser / service Pack issues?"
    Date: Tue, 29 Jul 2003 14:30:39 -0700
    
    

    I'm trying to create a structure I can share
    authentication from a root application with many
    subordinate applications (subfolders).

    The web.config file for the root has:

                    <authorization>
                            <allow users="*" />
                    </authorization>
                    
    Then, each subordinate application (subfolder) has a
    web.config with the following:

        <authentication mode="Forms">
                    <forms name=".BUZZARD"
                            loginUrl="../login.aspx">
                    </forms>
        </authentication>
        <authorization>
            <deny users="?" />
        </authorization>

    When the user access a resource in a subfolder, the login
    form is displayed and authenticates the user correctly,
    including the creation of an authentication ticket. But,
    when the login form attempts to redirect the browser to
    the requested secure resource, the login form is
    redisplayed. I have tried using
    FormsAuthentication.RedirectFromLoginPage() and
    Response.Redirect() with the same results.

    Any ideas?

    JTR.


  • Next message: Yan-Hong Huang[MSFT]: "RE: Forms Authentication- Browser / service Pack issues?"

    Relevant Pages

    • Re: Forms Authentication w/SubFolders
      ... made a few days later that reports a similar issue: Sucessful authentication ... My situation is that in root, aspx pages authenticate fine (the login.aspx ... > When the user access a resource in a subfolder, ... > when the login form attempts to redirect the browser to ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Logon Window Appears on siblings of authenticated directories
      ... Windows Auth, and a physical directory under root. ... authentication when my user identity was recognized on the machine -- which ... when virtual directories and authentication are ...
      (microsoft.public.inetserver.iis)
    • Re: Forms Authentication - Cookie not being generated...
      ... It was very interesting and I learnt plenty from just taking ... Never thought I could secure a directory from one root ... The login page is ... > access with Forms authentication so your login page (and all protected ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: [kde-linux] Problem logging in as non-root user [SOLVED]
      ... I installed KDE 3.5.6 and I am able to successfully launch the KDE session when I issue startx from a root session. ... while loading shared libraries: libICE.so.6: cannot open shared object ... failed Authentication Rejected, ... kdeinit: DCOPServer could not be started, ...
      (KDE)
    • Re: pubkey works for user: why not root ?
      ... AND to add the line "AllowUsers sean root" (multiple users can be allowed, ... debug1: Connection established. ... debug2: fd 3 setting O_NONBLOCK ... debug1: Next authentication method: publickey ...
      (SSH)