Quering PrincipalSecurityAttributes on class
From: Pasi Häkkinen (pasi.hakkinen_at_newsgroup.nospam)
Date: 05/25/05
- Next message: Gabriel Giraldo: "Single Sign-On with Forms Authentication"
- Previous message: dl: "How to get ou of an user"
- Next in thread: [MSFT]: "RE: Quering PrincipalSecurityAttributes on class"
- Reply: [MSFT]: "RE: Quering PrincipalSecurityAttributes on class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 25 May 2005 05:01:01 -0700
Hello,
I am applying PrincipalSecurityAttributes on class definition to force
role-based security on my ASP.NET pages. Is it somehow possible to query the
needed security roles for a certain page without maybe creating an instance
of that page class and check possible security exception? I'm providing
hyperlinks to these secured pages (and amongs them) and I would like to check
the permission to decide whether the hyperlink should be visible or not (..is
the logged-in user in correct roles or not)...
Or maybe there is a better approach to this problem altogether?
Thanks in advance,
Pasi
- Next message: Gabriel Giraldo: "Single Sign-On with Forms Authentication"
- Previous message: dl: "How to get ou of an user"
- Next in thread: [MSFT]: "RE: Quering PrincipalSecurityAttributes on class"
- Reply: [MSFT]: "RE: Quering PrincipalSecurityAttributes on class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|