SSL and Forms Authentication

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

  1. #1

    Default SSL and Forms Authentication

    Hi,

    I've seen this problem posted a few times around the 'net with no answer.
    Hopefully someone here can help.

    We have our website configured to use Forms Authentication. We want to
    secure the Login page ONLY using SSL. When a user goes to the site he is
    redirected to the Login page for authentication, but gets an error saying
    the resource is protected and they must use HTTPS:.

    That's ugly, since the redirect should be transparent to the user.

    When we setup the <forms> tag we have tried using the full path in the
    loginUrl property, including 'httpS://'. When we do this the user doesn't
    get the message about HTTPS, but he DOES get an NT Authentication login
    dialog instead.

    Thats even uglier and I'm not even sure why that happens.

    Documentation and books I've read allude to the abiltiy to secure a single
    folder or page using SSL and the login redirection works. Those same
    documents and books don't say HOW to make it work and we haven't been able
    to either.

    Is it even possible to do this? Has anyone here done it successfully?

    Scott L.


    Scott 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. 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...
    3. 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...
    4. 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...
    5. Forms authentication with Windows authentication
      Hi, I have an ASP.NET web site that uses IIS Basic Authentication and accesses an OLAP Server at various stages. The OLAP Server authentication...
  3. #2

    Default Re: SSL and Forms Authentication

    Perhaps you could try and put some code in the Application_Authenticate
    event that checks to see if the user is already authenticated, if not, then
    issue a manual redirect to your HTTPS login page.

    --
    - Paul Glavich


    "Scott" <no_email_at_all> wrote in message
    news:uBN4Zln9DHA.2480@TK2MSFTNGP10.phx.gbl...
    > Hi,
    >
    > I've seen this problem posted a few times around the 'net with no answer.
    > Hopefully someone here can help.
    >
    > We have our website configured to use Forms Authentication. We want to
    > secure the Login page ONLY using SSL. When a user goes to the site he is
    > redirected to the Login page for authentication, but gets an error saying
    > the resource is protected and they must use HTTPS:.
    >
    > That's ugly, since the redirect should be transparent to the user.
    >
    > When we setup the <forms> tag we have tried using the full path in the
    > loginUrl property, including 'httpS://'. When we do this the user doesn't
    > get the message about HTTPS, but he DOES get an NT Authentication login
    > dialog instead.
    >
    > Thats even uglier and I'm not even sure why that happens.
    >
    > Documentation and books I've read allude to the abiltiy to secure a single
    > folder or page using SSL and the login redirection works. Those same
    > documents and books don't say HOW to make it work and we haven't been able
    > to either.
    >
    > Is it even possible to do this? Has anyone here done it successfully?
    >
    > Scott L.
    >
    >

    Paul Glavich Guest

  4. #3

    Default Re: SSL and Forms Authentication

    I've been trying to figure this out too, without luck. I just work around it
    by
    redirecting to a relative aspx page from the loginurl in web.config, then
    do a response.redirect([url]https://www.host.com/login.aspx[/url]) from that. Messy
    but it works

    Justin

    "Scott" <no_email_at_all> wrote in message
    news:uBN4Zln9DHA.2480@TK2MSFTNGP10.phx.gbl...
    > Hi,
    >
    > I've seen this problem posted a few times around the 'net with no answer.
    > Hopefully someone here can help.
    >
    > We have our website configured to use Forms Authentication. We want to
    > secure the Login page ONLY using SSL. When a user goes to the site he is
    > redirected to the Login page for authentication, but gets an error saying
    > the resource is protected and they must use HTTPS:.
    >
    > That's ugly, since the redirect should be transparent to the user.
    >
    > When we setup the <forms> tag we have tried using the full path in the
    > loginUrl property, including 'httpS://'. When we do this the user doesn't
    > get the message about HTTPS, but he DOES get an NT Authentication login
    > dialog instead.
    >
    > Thats even uglier and I'm not even sure why that happens.
    >
    > Documentation and books I've read allude to the abiltiy to secure a single
    > folder or page using SSL and the login redirection works. Those same
    > documents and books don't say HOW to make it work and we haven't been able
    > to either.
    >
    > Is it even possible to do this? Has anyone here done it successfully?
    >
    > Scott L.
    >
    >

    Justin 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