Re: Problem deploying forms authorization



Hi Haim,

How are you doing?

Have you got progress or resolved on this issue or does the further
information in my last reply help you some?

If you need any further help, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------

Thanks for your reply Haim,

After some further speculation, I think I somewhat figure out the problem
you're encountering. Yes, it does be somewhat caused by the Login
Control,
however, you can still use the login control with your own authentication
logic(and suppress the built-in membership/role providers'). To do so, you
should perform as below:

** For the Login Control, you should use the "LogginIn" event instead of
"Authenticate" event, because in LogginIn event, you can cancel the event
so that it won't execute further to call built-in membership providers.

** Here is the pseudocode code logic of the "logginIn" event:

=================
protected void Login1_LoggingIn(object sender, LoginCancelEventArgs e)
{
//do your database query and username/password validation here

//use FormsAuthentications.XXX method to establish
authentication ticket

//cancel the event so that it won't execute down furthe to
call
built-in membership provider
e.Cancel = true;

}
=========================

** For the code about "use FormsAuthentications.XXX method to establish
authentication ticket", you can refer to the articles(that mentioned
manually use Forms Authentication api to generate authentication cookies)
I
mentioned in previous reply.

If you still have anything unclear, please feel free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.






.



Relevant Pages

  • Re: IIS 5.1 execution questions - application failed to initialize
    ... The identity used by IIS to execute ASP page (and hence your WshShell.Run ... negotiated between the client and IIS in accordance to IIS authentication ...
    (microsoft.public.inetserver.iis)
  • Authentication and SU
    ... I noticed that each time that I execute su and then gedit I get the ... Authentication Rejected, reason: ... I was checking for .Xauthority on my root directory and I saw not one ...
    (Fedora)
  • Re: Forms Authentication Signoff
    ... > I am using forms authenication with a custom signon page and I execute the ... > following statement to force a signoff from a signoff web page... ... > protected from entry due to lack of authentication that the form is ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: AS400 FTP, can you launch a bat file on W2K3 server
    ... allows another system to execute commands without authentication, ... a command on the windows server would be as simple as uploading a batch file to ...
    (comp.sys.ibm.as400.misc)
  • Forms Authentication Signoff
    ... I am using forms authenication with a custom signon page and I execute the ... following statement to force a signoff from a signoff web page... ... protected from entry due to lack of authentication that the form is displayed ...
    (microsoft.public.dotnet.framework.aspnet)