J
Jamie
I have a asp.net web application that i wrote for internal use in my
company. The problem i'm having is being able to test the application as
other users see it. The security for the asp.net app is Windows
Authentication. I'd like to be able to (for testing purposes) impersonate
another user so i can see things as they see them. I don't want to have to
change all of my active directory permissions to match their permissions,
that's not an option. Also, there is no way i can test certain features of
the application without being logged in as some specific users. I'm sure i
could do this if i wrote my own IsInRole method and passed in a username of
my choice and an active directory group and then interfaced with active
directory myself, but i was hoping there is an easier way that affects less
existing code.
Is there a way to stuff Page.User with an impersonated windows user? If so,
how would i create a valid impersonated windows user?
Thanks,
Jamie
company. The problem i'm having is being able to test the application as
other users see it. The security for the asp.net app is Windows
Authentication. I'd like to be able to (for testing purposes) impersonate
another user so i can see things as they see them. I don't want to have to
change all of my active directory permissions to match their permissions,
that's not an option. Also, there is no way i can test certain features of
the application without being logged in as some specific users. I'm sure i
could do this if i wrote my own IsInRole method and passed in a username of
my choice and an active directory group and then interfaced with active
directory myself, but i was hoping there is an easier way that affects less
existing code.
Is there a way to stuff Page.User with an impersonated windows user? If so,
how would i create a valid impersonated windows user?
Thanks,
Jamie