Re: IHttpModule and User.IsInRole
- From: trullock@xxxxxxxxxxx
- Date: 4 Apr 2007 03:47:24 -0700
On 4 Apr, 11:45, trull...@xxxxxxxxxxx wrote:
On 31 Mar, 15:14, "Alexey Smirnov" <alexey.smir...@xxxxxxxxx> wrote:
On Mar 31, 1:50 pm, trull...@xxxxxxxxxxx wrote:
Hi,
Ive written a URLRewriter IHttpModule which all works fine.
I've come to make a change to it which involves deciding where to
redirect based on what role a user is in.
HttpContext.Current.User is null however in my ihttpmodule's
beginrequest event :(
Should it be? If so, is there a different event i can use where the
User does exist which doesnt fire too late to perfrom the rewrite?
Thanks
Andrew
AuthenticateRequest
Hi,
Thanks for that suggestion, ive tried it and the user does exist at
that point, but .IsInRole("bla") always returns false, for all the
roles its supposed to be in :s
Any idea whats going on there?
Thanks
Andrew
OK i've used AuthorizeRequest :)
Is that still and acceptable event in which to perfrom the rewrite?
Thanks
Andrew
.
- References:
- Re: IHttpModule and User.IsInRole
- From: trullock
- Re: IHttpModule and User.IsInRole
- Prev by Date: Re: IHttpModule and User.IsInRole
- Next by Date: Anyone know how to work with Xpath of Xmlnode ? need some help with this.
- Previous by thread: Re: IHttpModule and User.IsInRole
- Next by thread: Anyone know how to work with Xpath of Xmlnode ? need some help with this.
- Index(es):
Relevant Pages
|