How To Determine Permission Requirements for a Resource?
From: John Gordon (john.gordon.156699@||No-Spam||wamu.net)
Date: 04/14/03
- Next message: Ivan Medvedev [MS]: "Re: Illegal key size for this algorithm"
- Previous message: Jason Pileski: "Different user when testing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "John Gordon" <john.gordon.156699@||No-Spam||wamu.net> Date: Mon, 14 Apr 2003 11:58:54 -0700
The Gist: How do I check from a login page if the user is
being redirected to the login page because he/she did not
have permissions to view a requested resource? I'm
currently doing this by checking if the user is
authenticated already and if there is a ReturnUrl in the
querystring. This strategy works, unless the user
bookmarks the login page that contains the returnUrl in the
querystring. Is there another way to find out what I want
without checking for whether or not there is a returnUrl in
the querystring? I'm thinking that I could do something in
the Application_AuthorizeRequest to find out what page was
being requested and to get the roles that are allowed to
view it.
Thanks!
- Next message: Ivan Medvedev [MS]: "Re: Illegal key size for this algorithm"
- Previous message: Jason Pileski: "Different user when testing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|