N
nicksertis
Hi All,
I am writing an ASP.NET site that needs to know the user's details. Not
such a problem when the user is logged in as I can use Windows
Authentication to get their username. The problem comes because this
app can be run _before_ they login to windows, meaning that they have
no Windows credentials being passed. In this case a default user
account should be used just to give them access (albeit non-validated).
I was hoping to be able to create a separate page for this situation.
This page would allow anonymous authentication, and all it would do is
create a default set of credentials before redirecting to the actual
site.
I initially thought that turning anonymous authentication on in IIS
would still pass credentials if you were logged in but this doesn't
seem to be the case (if you know this to be incorrect, please tell me
as I could be setting it up wrong).
Is there a way in .NET to set the user credentials before redirecting
to another page in the same project?
Many Thanks,
Nick
I am writing an ASP.NET site that needs to know the user's details. Not
such a problem when the user is logged in as I can use Windows
Authentication to get their username. The problem comes because this
app can be run _before_ they login to windows, meaning that they have
no Windows credentials being passed. In this case a default user
account should be used just to give them access (albeit non-validated).
I was hoping to be able to create a separate page for this situation.
This page would allow anonymous authentication, and all it would do is
create a default set of credentials before redirecting to the actual
site.
I initially thought that turning anonymous authentication on in IIS
would still pass credentials if you were logged in but this doesn't
seem to be the case (if you know this to be incorrect, please tell me
as I could be setting it up wrong).
Is there a way in .NET to set the user credentials before redirecting
to another page in the same project?
Many Thanks,
Nick