Security across several apps

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

  1. #1

    Default Security across several apps

    Hi,

    For some of you this must be elementary, sorry for being boring. I have
    several ASP.NET apps that I want to secure. The way I am going about it, is
    by having all apps set for Forms authentication. The login.aspx I have new
    users redirect to is part of a Admin module (yet another ASP.NET app) that
    handles all the trickery of verifying user names etc.

    Seems so simple but it doesn't work. When users attempt to view any of the
    applications' pages without being logged in (say app.aspx), they are indeed
    redirected from app.aspx to the login.aspx page. However, after the
    RedirectFromLogin() call in login.aspx, app.aspx does not see that the user
    is authenticated and simply redirects to login.aspx again. Somehow I need to
    feed the authorization through to app.aspx but have no idea how to do this.

    Ideas anyone?

    Jib


    jib Guest

  2. Similar Questions and Discussions

    1. Change Flash Security Settings? Security ManagerOffline?
      Hello I have downloaded firefox and flash player, I have content which when I run it, flash blocks it wisely and reports that the page is trying...
    2. Call windows apps from web apps
      I have 2 apps windows and web apps. I would like to call a windows app (.exe) from web apps. How do I do this?
    3. all .NET apps cause System.Security.Policy.PolicyException
      I was testing some configuration options with Framework Configuration tool and eventually something went wrong in .NET security. Now cannot do...
    4. Security tool to check CGI scripts for security holes/vulnerabities
      I'm searching for a good security tool that I can use regularly to scan all the programs/scripts in my web servers cgi-bin directory to identify...
    5. Web enabled apps/Thin client apps
      I'm writing an article and I need your informed opinions, so I ask you this: 1. Doesn't the web-enabled app generally run slower for one reason or...
  3. #2

    Default Re: Security across several apps

    ASP.NET handles forms authentication through session variables. Each
    application has its own session store, so your users are logged in to the
    other application, but then are returned to the original application where
    they do not have an entry in that application's session store. You need to
    get the session state set within that specific application.

    --
    Chris Jackson
    Software Engineer
    Microsoft MVP - Windows Client
    Windows XP Associate Expert
    --
    More people read the newsgroups than read my email.
    Reply to the newsgroup for a faster response.
    (Control-G using Outlook Express)
    --

    "jib" <jib_0@hotmail.com> wrote in message
    news:%23tojYWQ%23DHA.452@TK2MSFTNGP11.phx.gbl...
    > Hi,
    >
    > For some of you this must be elementary, sorry for being boring. I have
    > several ASP.NET apps that I want to secure. The way I am going about it,
    > is
    > by having all apps set for Forms authentication. The login.aspx I have new
    > users redirect to is part of a Admin module (yet another ASP.NET app) that
    > handles all the trickery of verifying user names etc.
    >
    > Seems so simple but it doesn't work. When users attempt to view any of the
    > applications' pages without being logged in (say app.aspx), they are
    > indeed
    > redirected from app.aspx to the login.aspx page. However, after the
    > RedirectFromLogin() call in login.aspx, app.aspx does not see that the
    > user
    > is authenticated and simply redirects to login.aspx again. Somehow I need
    > to
    > feed the authorization through to app.aspx but have no idea how to do
    > this.
    >
    > Ideas anyone?
    >
    > Jib
    >
    >

    Chris Jackson Guest

  4. #3

    Default Re: Security across several apps


    "Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
    > ASP.NET handles forms authentication through session variables. Each
    > application has its own session store, so your users are logged in to the
    > other application, but then are returned to the original application where
    > they do not have an entry in that application's session store. You need to
    > get the session state set within that specific application.
    >
    Thanks Chris, any code examples how I would obtain that session state?

    Jib


    jib Guest

  5. #4

    Default Re: Security across several apps

    The problem is that you have a separate AppDomain for each web application
    that you create, and an assembly in one AppDomain can't gain access to
    memory in another AppDomain without doing some tricks with remoting. Your
    options are:

    1. Create a single root application, with all other applications as child
    applications
    2. You persist your session information to a database, and then read it in
    during authentication, redirecting to the login page if you don't find it
    and logging in if you do
    3. Repeating your authentication page in each of your applications
    4. Use Windows Authentication, so a user will authenticate to all of your
    sites using the credentials they signed in with
    5. Use remoting to get access to the session information and get a local
    instance during authentication

    I am sure there are other options out there as well.

    --
    Chris Jackson
    Software Engineer
    Microsoft MVP - Windows Client
    Windows XP Associate Expert
    --
    More people read the newsgroups than read my email.
    Reply to the newsgroup for a faster response.
    (Control-G using Outlook Express)
    --

    "jib" <jib_0@hotmail.com> wrote in message
    news:eefzSvi%23DHA.2748@TK2MSFTNGP12.phx.gbl...
    >
    > "Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
    >> ASP.NET handles forms authentication through session variables. Each
    >> application has its own session store, so your users are logged in to the
    >> other application, but then are returned to the original application
    >> where
    >> they do not have an entry in that application's session store. You need
    >> to
    >> get the session state set within that specific application.
    >>
    >
    > Thanks Chris, any code examples how I would obtain that session state?
    >
    > Jib
    >
    >

    Chris Jackson Guest

  6. #5

    Default Re: Security across several apps

    Check this out
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconformsauthenticationacrossapplications.asp[/url]

    "jib" <jib_0@hotmail.com> wrote in message
    news:%23tojYWQ%23DHA.452@TK2MSFTNGP11.phx.gbl...
    > Hi,
    >
    > For some of you this must be elementary, sorry for being boring. I have
    > several ASP.NET apps that I want to secure. The way I am going about it,
    is
    > by having all apps set for Forms authentication. The login.aspx I have new
    > users redirect to is part of a Admin module (yet another ASP.NET app) that
    > handles all the trickery of verifying user names etc.
    >
    > Seems so simple but it doesn't work. When users attempt to view any of the
    > applications' pages without being logged in (say app.aspx), they are
    indeed
    > redirected from app.aspx to the login.aspx page. However, after the
    > RedirectFromLogin() call in login.aspx, app.aspx does not see that the
    user
    > is authenticated and simply redirects to login.aspx again. Somehow I need
    to
    > feed the authorization through to app.aspx but have no idea how to do
    this.
    >
    > Ideas anyone?
    >
    > Jib
    >
    >

    OTS 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