Context.User.Identity.Name

  • Thread starter Jennifer Mathews
  • 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
 
G

Guest

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");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top