Forms Authentication without Login Page

From: Paul Hodgson (abc_at_xyz.com)
Date: 12/19/03


Date: Fri, 19 Dec 2003 15:49:39 -0000

Is there any way to log someone in using Forms authentication *without*
using RedirectFromLoginPage()?

My reason for asking is that I'm trying to use Forms Authentication to allow
users to login to a site, but I keep coming up against the problem that all
the MS examples show using a Login page that users are redirected to if they
try to access a protected page. Trouble is - our site doesn't really have
protected pages. Any page is accessible to anyone - but if you're not logged
in then the page will show different information from what it will show if
you are logged in. Also, we don't want a separate login page, instead we
want users to be able to login inline with small forms inside other pages.

What this means I think is that I need to be able to do the following
whenever a page is loaded:
1. Check explicitly if the user has been logged in using Forms
Authentication so the code can decide what to display.
2. If appropriate, explicitly log the user in but without redirecting to
anywhere else (if the user has just posted back to the page by filling in a
Login form).

Any pointers on how to do that appreciated :-)



Relevant Pages

  • Re: Separate Login site
    ... cookies that were written for that domain. ... primesite domain name as part of the url to your login page. ... page would read the prime site domain name and write the authentication ... RedirectFromLoginPage ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Forms Authentication without Login Page
    ... the user logs in using your login dialog. ... the authentication cookie. ... the above user control to hide itself or in the pageto hide the control. ... > using RedirectFromLoginPage()? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • [Full-Disclosure] Advisory: Dark Age of Camelot - Weak encryption of network traffic exposed persona
    ... Weak encryption in game client exposed customer billing and authentication ... encryption for billing information. ... The login binary has undergone several updates since then. ...
    (Full-Disclosure)
  • Re: [PHP] Is this the best way?
    ... Why is Jason schreefing again? ... maybe I should edit my authentication function... ... attempting to login. ... really be either attempting an authentication *or* outputting some ...
    (php.general)
  • Authentication Sharing Across Apps
    ... For my part "B" question that I had (Login App was not returning ... authentication to calling app), I found the solution. ... Basically, in both the Login App and Calling App Web.Config, I did ... authenticated connection with SQL server. ...
    (microsoft.public.dotnet.framework.aspnet.security)