Re: AuthenticateRequest in Global.asax and a custom HTTP Module
From: Leslie (Leslie_at_discussions.microsoft.com)
Date: 05/25/05
- Next message: Eli Kremer: "cryptographic service provider problem"
- Previous message: Brock Allen: "Re: AuthenticateRequest in Global.asax and a custom HTTP Module"
- In reply to: Brock Allen: "Re: AuthenticateRequest in Global.asax and a custom HTTP Module"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: AuthenticateRequest in Global.asax and a custom HTTP Module"
- Reply: Dominick Baier [DevelopMentor]: "Re: AuthenticateRequest in Global.asax and a custom HTTP Module"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 25 May 2005 11:04:38 -0700
Thanks for helpine me here. If I understand you correctly, I think you are
talking about form authentication. However, since I am writing a web service
application, I can't use this approach. That is why I am thinking to use
AuthenticateRequest from either the Blobal.asax or a custom HTTP module. But
I am not sure about the difference of these two. Do you know?
"Brock Allen" wrote:
> > I think that I could put my authentication code in AuthenticateRequest
> > event in either Global.asax or in a custom HTTP module. However, I
> > don't know what is the difference between them. And is there any
> > implication if I make the choice of one way or the other?
>
> Authentication is done in your custom login page. Once you are confident
> the user has provided proper credentials you then want to call FormsAuthentication.SetAuthCookie
> or FormsAuthentication.RedirectFromLoginPage. This will issue a cookie that
> will identify the user.
>
> So, in short, you just need to build the login page.
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
>
>
- Next message: Eli Kremer: "cryptographic service provider problem"
- Previous message: Brock Allen: "Re: AuthenticateRequest in Global.asax and a custom HTTP Module"
- In reply to: Brock Allen: "Re: AuthenticateRequest in Global.asax and a custom HTTP Module"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: AuthenticateRequest in Global.asax and a custom HTTP Module"
- Reply: Dominick Baier [DevelopMentor]: "Re: AuthenticateRequest in Global.asax and a custom HTTP Module"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|