Context.User.Identity.Name

  • Thread starter Thread starter Jennifer Mathews
  • Start date Start date
J

Jennifer Mathews

I am using Context.User.Identity.Name

to get the user that is logging into the system through the internet.

Unfortunately, their credentials are not being passed to the web application.

How should I setup IIS ( Integrated Authentication , Application Pool using Network
Services, ???)
in order that the web application receives the user's credentials through
Context.User.Identity.Name

Thanks
 
I am using Context.User.Identity.Name

to get the user that is logging into the system through the internet.

Unfortunately, their credentials are not being passed to the web application.

How should I setup IIS ( Integrated Authentication , Application Pool using Network
Services, ???)
in order that the web application receives the user's credentials through
Context.User.Identity.Name

Thanks

Jennifer,

It's likely you have enabled anonymous access. To check if the current
user is authenticated or not try this:

if (this.Context.User.Identity.IsAuthenticated)
Response.Write(Context.User.Identity.Name);
else
Response.Write("Nope");
 
Back
Top