Re: Forms Authentication problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Apr 4, 8:58 pm, "David"
<david.colliver.N...@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
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.isauthenticated 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="SHA1" />

Forms Authentication Across Applications
http://msdn2.microsoft.com/en-us/library/eb0zx8fc.aspx

How to create keys by using Visual C# .NET for use in Forms
authentication
http://support.microsoft.com/kb/312906

.



Relevant Pages

  • Forms Authentication problem
    ... I am not using the protected folder ... I have a dashboard application. ... The pop-up from the Admin folder checks my user.isauthenticated but finds it ... How can I get my authentication to be passed into the Admin part of my ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Forms-based authentication
    ... In web.config you can specify different authentication for different ... works quite fine when I put web.config file in the root of my web directory. ... Actually I want a specific folder like ... When I put the web.config file inside the Admin ...
    (microsoft.public.dotnet.general)
  • How do I use forms authentication on specific directories?
    ... My app has an 'admin' folder. ... folder it's own config file and set the authentication rules there. ...
    (microsoft.public.dotnet.framework.aspnet)
  • How to change web.config login.aspx to something else?
    ... I'm currently developing a role based authentication using ... I've a sub folder call "Administrator" and obviously only ... page for admin is default.aspx. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Separating authentication and authorization for admins was: RE: AD across both DMZ & LAN
    ... Subject: Separating authentication and authorization for admins was: RE: ... administrators and/or admin actions on the ... > internet from their PC's. ... so that we only have one set of user accounts to ...
    (Security-Basics)