Re: Problem deploying forms authorization
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Fri, 24 Aug 2007 03:42:45 GMT
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.
.
- Follow-Ups:
- Re: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Re: Problem deploying forms authorization
- References:
- Problem deploying forms authorization
- From: HIK
- RE: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Re: Problem deploying forms authorization
- From: HIK
- Re: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Re: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Re: Problem deploying forms authorization
- From: HIK
- Re: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Re: Problem deploying forms authorization
- From: HIK
- Re: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Re: Problem deploying forms authorization
- From: HIK
- Problem deploying forms authorization
- Prev by Date: Re: User objects cannot be created in the specified container
- Next by Date: Re: Defining Roles, Groups?
- Previous by thread: Re: Problem deploying forms authorization
- Next by thread: Re: Problem deploying forms authorization
- Index(es):
Relevant Pages
|
|