Ask a Question related to ASP.NET Security, Design and Development.
-
popman #1
ASP.NET Authorization
I'd like to use role in Forms authentication and I found the following words
from .net SDK about ASP.NET Authorization.
" Identifies a targeted role for this element. The associated IPrincipal
object for the request determines the role membership. You can attach
arbitrary IPrincipal objects to the context for a given request and they can
determine role membership in whatever way you like."
And I have the following codes:
Dim ui As New System.Security.Principal.GenericIdentity("popman" )
Dim roles() As String = {"admin"}
Dim urole As New System.Security.Principal.GenericPrincipal(ui,
roles)
My questions is
1. what is "the context for a given request" ?
2. where is "the context for a given request" ?
3. How to attach urole to the context?
Thanks.:-)
Thanks.
popman Guest
-
Role authorization
I use custom authentication and I set the identity with following line FormsAuthentication.SetAuthCookie(username.Text, False) How do I set the... -
URL Authorization
Hi All, I am trying to write several applications, for external users. They will use forms authentication to login. My question concerns url... -
authorization for sub directory
Hi All, Could anybody advise me for the following.. I want to restrict access to a subdirectory in an web application which has "integrated... -
[PHP] SMTP - Authorization?
Hey all! glad to bea here! got alot to learn! k, basically i am sending out a mailing list to customers, - using a PHP script, however the... -
Don't have Administrative authorization
Problem resolved. Just as I thought...IT. With some off-sight assistance I''ve been able to resolve the issue. Thanks, Jan :) -
Eric Marvets #2
RE: ASP.NET Authorization
Check out this MSDN Article. It is exactly what you are looking for
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT04.as[/url]
-Eric
Eric Marvets Guest
-
popman #3
Re: ASP.NET Authorization
Thank you.It 's exactly what I want.
-Neo
"Eric Marvets" <anonymous@discussions.microsoft.com> дÈëÏûÏ¢ÐÂÎÅ
:F8EACCA5-F077-43C1-B180-B05055F254CA@microsoft.com...[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT04.asp[/url]> Check out this MSDN Article. It is exactly what you are looking for.
>
>>
> -Eric
popman Guest



Reply With Quote

