Ask a Question related to ASP.NET Security, Design and Development.
-
Adam Getchell #1
Directly Accessing a Principal Object
I've writting an httpModule to handle our custom authentication process,
which uses site-wide kerberos.
Currently, this means that each and every page causes authentication to
occur. I'd like to short-circuit authentication if it's already happened by
using something like:
private void AuthenticateRequest(object requestObjectSender, EventArgs
requestObjectEventArguments)
{
if (!Thread.CurrentPrincipal.Identity.IsAuthenticated )
{
HttpApplication objectApplication = (HttpApplication)requestObjectSender;
HttpContext objectContext = (HttpContext)objectApplication.Context;
.....
For this to work, I need to have my GenericPrinciple setup here:
objectContext.User = new GenericPrincipal(objectIdentity, stringRoles);
have its IsAuthenticated property set to true.
How would I do this? The article "Directly Accessing a Principal Object" in
the .NET Framework Developer's Guide doesn't explain this, as far as I can
tell. Are there other pointers?
Thanks,
Adam Getchell Guest
-
Accessing an object in one component from anothercomponent
So I have an application that contians a component that contians a VBox which it self contains a Text component. Here's the code "The... -
Accessing HttpApplicationState object from SoapExtension
Hi, I have a custom SoapExtension class and in the "ProcessMessage" method I would like to get a handle of HttpApplicationState object. How... -
Accessing data object on delete command.
Hi guys. I have a datagrind that is bound to a custom collection of a custom object. When a delete button is pressed in the datagrid, I not... -
Accessing Director Object
I search a way to access objects inside Director from external programming language (VB, C, JAVA and so). Can I do something like this? Thanks.... -
Accessing all properties of an object at Runtime
Use reflection... "Softwaremaker" <msdn@removethis.softwaremaker.net> wrote in message news:<#b1mBjhQDHA.2432@TK2MSFTNGP10.phx.gbl>...



Reply With Quote

