SSL for login page only

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

  1. #1

    Default SSL for login page only

    Hi all,

    My ASP.NET intranet web application uses windows authentication. It has to
    support both IE and Mozilla browsers so I am forced to allow Basic
    Authentication for Mozilla users. Because of some intranet configuration
    issues I cannot use the Digest Authentication.

    I would like to protect the user name/password using SSL. But for
    performance reason I want to protect just login, the rest of the
    communication shouldn't use SSL.

    What is the way of doing this? The application start page is default.aspx.

    I tried:

    1. Set "Require SSL" for default.aspx page in IIS - result is that SSL will
    then be used for all pages

    2. Hook in Global.asax Application_BeginRequest and if the request is not
    for default.aspx I rewrite "https" request to "http" - that works and
    switches the protocol, however with switching the protocol the web browser
    fires the login window again (so the user has to type in the password second
    time and this time I believe it would travel in clear text)

    Any other ideas? I searched internet quite extensively but could not find
    anything.

    Thanks,
    Martin


    mpes Guest

  2. Similar Questions and Discussions

    1. Strange problem with Forms authentication: After successfull login, login page is still displayed
      Hi there I have a quite strange problem with my ASP.NET-Application. The application has being deployed one year ago and worked fine till last...
    2. user and admin login on same login page
      Hello, I have a user login page which also doubles as my administrator login. Currently, my method of logging in doesnt seem to be working...
    3. making a login page which shud lead to a https page ?
      (Type your message here) making a login page which shud lead to a https page ? ne suggestions -------------------------------- From: sneha...
    4. How to place a Name in a index page after login page
      Hello everyone. I just started to learning ColdFusion and I was wondering when someone registers and they place their first and last name and...
    5. my user login page is always the default page
      :brokenheart; my coldfusion application has an login page, some users logged in and saved some page to favorites, then close the browser without...
  3. #2

    Default Re: SSL for login page only

    It's possible, but it's not a great idea. After a user logs in via basic
    authentication, the login credentials will be communicated to the server as
    simple base64-encoded plaintext in the HTTP headers. If you allow this
    information to travel over HTTP, it will be as susceptible to theft by an
    eavesdropper as it was at the original login.



    "mpes" <mpes@community.nospam> wrote in message
    news:OT5mGQVJFHA.2728@TK2MSFTNGP09.phx.gbl...
    > Hi all,
    >
    > My ASP.NET intranet web application uses windows authentication. It has to
    > support both IE and Mozilla browsers so I am forced to allow Basic
    > Authentication for Mozilla users. Because of some intranet configuration
    > issues I cannot use the Digest Authentication.
    >
    > I would like to protect the user name/password using SSL. But for
    > performance reason I want to protect just login, the rest of the
    > communication shouldn't use SSL.
    >
    > What is the way of doing this? The application start page is default.aspx.
    >
    > I tried:
    >
    > 1. Set "Require SSL" for default.aspx page in IIS - result is that SSL
    > will
    > then be used for all pages
    >
    > 2. Hook in Global.asax Application_BeginRequest and if the request is not
    > for default.aspx I rewrite "https" request to "http" - that works and
    > switches the protocol, however with switching the protocol the web browser
    > fires the login window again (so the user has to type in the password
    > second
    > time and this time I believe it would travel in clear text)
    >
    > Any other ideas? I searched internet quite extensively but could not find
    > anything.
    >
    > Thanks,
    > Martin
    >
    >

    Nicole Calinoiu Guest

  4. #3

    Default Re: SSL for login page only

    Thanks Nicole,

    Well I did not know that thing about credentials in HTTP headers. Of course
    in such circumstances it does not make sense to SSL encode just initial
    login. That would explain why I could not find any "How to do it" info on
    internet :-)

    Thanks a lot!


    "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
    news:OUP24mWJFHA.3752@TK2MSFTNGP14.phx.gbl...
    > It's possible, but it's not a great idea. After a user logs in via basic
    > authentication, the login credentials will be communicated to the server
    as
    > simple base64-encoded plaintext in the HTTP headers. If you allow this
    > information to travel over HTTP, it will be as susceptible to theft by an
    > eavesdropper as it was at the original login.
    >
    >
    >
    > "mpes" <mpes@community.nospam> wrote in message
    > news:OT5mGQVJFHA.2728@TK2MSFTNGP09.phx.gbl...
    > > Hi all,
    > >
    > > My ASP.NET intranet web application uses windows authentication. It has
    to
    > > support both IE and Mozilla browsers so I am forced to allow Basic
    > > Authentication for Mozilla users. Because of some intranet configuration
    > > issues I cannot use the Digest Authentication.
    > >
    > > I would like to protect the user name/password using SSL. But for
    > > performance reason I want to protect just login, the rest of the
    > > communication shouldn't use SSL.
    > >
    > > What is the way of doing this? The application start page is
    default.aspx.
    > >
    > > I tried:
    > >
    > > 1. Set "Require SSL" for default.aspx page in IIS - result is that SSL
    > > will
    > > then be used for all pages
    > >
    > > 2. Hook in Global.asax Application_BeginRequest and if the request is
    not
    > > for default.aspx I rewrite "https" request to "http" - that works and
    > > switches the protocol, however with switching the protocol the web
    browser
    > > fires the login window again (so the user has to type in the password
    > > second
    > > time and this time I believe it would travel in clear text)
    > >
    > > Any other ideas? I searched internet quite extensively but could not
    find
    > > anything.
    > >
    > > Thanks,
    > > Martin
    > >
    > >
    >
    >

    mpes 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