Forms Authentication problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    Forms Authentication problem

    Hi all,

    I have a problem with Forms Auth. I am not using the protected folder
    method, rather, I want some parts of the page to be shown depending on the
    authentication state.

    Basically, I have a dashboard application. In the dashboard, I have various
    hyperlinks and linkbuttons. I have also created roles and each user will be
    assigned a role and the buttons in the dashboard will depend on the role. If
    the person is not authenticated, then the dashboard does not even show.

    This works fantastically, though took me a while to figure it out (as all
    the examples of formsauth on the net show you to protect a folder, which is
    not what I wanted.)

    Now, the structure of my site is like...

    root (application)
    Admin (application)
    Apps_VB (application)
    Apps_CS (application)
    Folder1
    Folder2

    Now, when I have logged in and get my dashboard, one of the buttons pops up
    a page from my Admin folder (which is declared as an application in IIS).
    This may be the problem but I need to find a way around it.

    The pop-up from the Admin folder checks my user.isauthenti cated but finds it
    is not, even though the button to pop it will not be visible if the parent
    app was not authenticated.

    How can I get my authentication to be passed into the Admin part of my
    application? Any ideas will be most appreciated.
    --
    Best regards,
    Dave Colliver.

    ~~
    http://www.FOCUSPortals.com - Local franchises available


  • Alexey Smirnov

    #2
    Re: Forms Authentication problem

    On Apr 4, 8:58 pm, "David"
    <david.colliver .N...@revilloc. REMOVETHIS.comw rote:
    Hi all,
    >
    I have a problem with Forms Auth. I am not using the protected folder
    method, rather, I want some parts of the page to be shown depending on the
    authentication state.
    >
    Basically, I have a dashboard application. In the dashboard, I have various
    hyperlinks and linkbuttons. I have also created roles and each user will be
    assigned a role and the buttons in the dashboard will depend on the role. If
    the person is not authenticated, then the dashboard does not even show.
    >
    This works fantastically, though took me a while to figure it out (as all
    the examples of formsauth on the net show you to protect a folder, which is
    not what I wanted.)
    >
    Now, the structure of my site is like...
    >
    root (application)
    Admin (application)
    Apps_VB (application)
    Apps_CS (application)
    Folder1
    Folder2
    >
    Now, when I have logged in and get my dashboard, one of the buttons pops up
    a page from my Admin folder (which is declared as an application in IIS).
    This may be the problem but I need to find a way around it.
    >
    The pop-up from the Admin folder checks my user.isauthenti cated but finds it
    is not, even though the button to pop it will not be visible if the parent
    app was not authenticated.
    >
    How can I get my authentication to be passed into the Admin part of my
    application? Any ideas will be most appreciated.
    --
    Best regards,
    Dave Colliver.http://www.AshfieldFOCUS.com
    ~~http://www.FOCUSPortals.com- Local franchises available
    To configure forms authentication across two applications, you should
    use the same machineKey in web.config of your root and admin.

    <machineKey
    validationKey=" ..."
    decryptionKey=" ..."
    validation="SHA 1" />

    Forms Authentication Across Applications


    How to create keys by using Visual C# .NET for use in Forms
    authentication


    Comment

    • Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

      #3
      Re: Forms Authentication problem

      The LoginView control of ASP.NET 2.0 should be able to do the trick for you.
      There are several other controls that could be useful to you as well, and
      I've described them all here:
      HALOJP adalah situs slot online resmi terpercaya yang tawarkan akses gampang maxwin. Cukup depo 10k, nikmati ribuan game gacor dengan sistem aman dan pembayaran lancar.


      --
      I hope this helps,
      Steve C. Orr,
      MCSD, MVP, CSM, ASPInsider
      HALOJP adalah situs slot online resmi terpercaya yang tawarkan akses gampang maxwin. Cukup depo 10k, nikmati ribuan game gacor dengan sistem aman dan pembayaran lancar.



      "David" <david.colliver .NEWS@revilloc. REMOVETHIS.comw rote in message
      news:uv%23qItud HHA.1240@TK2MSF TNGP04.phx.gbl. ..
      Hi all,
      >
      I have a problem with Forms Auth. I am not using the protected folder
      method, rather, I want some parts of the page to be shown depending on the
      authentication state.
      >
      Basically, I have a dashboard application. In the dashboard, I have
      various hyperlinks and linkbuttons. I have also created roles and each
      user will be assigned a role and the buttons in the dashboard will depend
      on the role. If the person is not authenticated, then the dashboard does
      not even show.
      >
      This works fantastically, though took me a while to figure it out (as all
      the examples of formsauth on the net show you to protect a folder, which
      is not what I wanted.)
      >
      Now, the structure of my site is like...
      >
      root (application)
      Admin (application)
      Apps_VB (application)
      Apps_CS (application)
      Folder1
      Folder2
      >
      Now, when I have logged in and get my dashboard, one of the buttons pops
      up a page from my Admin folder (which is declared as an application in
      IIS). This may be the problem but I need to find a way around it.
      >
      The pop-up from the Admin folder checks my user.isauthenti cated but finds
      it is not, even though the button to pop it will not be visible if the
      parent app was not authenticated.
      >
      How can I get my authentication to be passed into the Admin part of my
      application? Any ideas will be most appreciated.
      --
      Best regards,
      Dave Colliver.

      ~~
      http://www.FOCUSPortals.com - Local franchises available
      >

      Comment

      • Alexey Smirnov

        #4
        Re: Forms Authentication problem

        On Apr 4, 11:35 pm, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
        <S...@Orr.netwr ote:
        The LoginView control of ASP.NET 2.0 should be able to do the trick for you.
        There are several other controls that could be useful to you as well, and
        I've described them all here:http://SteveOrr.net/articles/SecureYourSite.aspx
        >
        I am afraid I don't see anything that might help in the LoginView here

        Comment

        • David

          #5
          Re: Forms Authentication problem

          Aside from that, I am using .NET 1.1

          I usually state that in my posts. I must have forgotten on this one...

          --
          Best regards,
          Dave Colliver.

          ~~
          http://www.FOCUSPortals.com - Local franchises available
          "Alexey Smirnov" <alexey.smirnov @gmail.comwrote in message
          news:1175728251 .053658.45500@w 1g2000hsg.googl egroups.com...
          On Apr 4, 11:35 pm, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
          <S...@Orr.netwr ote:
          >The LoginView control of ASP.NET 2.0 should be able to do the trick for
          >you.
          >There are several other controls that could be useful to you as well, and
          >I've described them all
          >here:http://SteveOrr.net/articles/SecureYourSite.aspx
          >>
          >
          I am afraid I don't see anything that might help in the LoginView here
          >

          Comment

          Working...