Click here to Skip to main content
15,883,918 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<!--Start Authenticate Mode-->
   <authentication mode="Forms" lockItem="true">
    <forms cookieless="UseCookies" enableCrossAppRedirects="false" protection="All" defaultUrl="Login" loginUrl="Login" name=".SAMPE_AUTH_CODE" timeout="20" />
  </authentication>

  <identity impersonate ="true"/>


I am able to fetch UserName by
C#
Environment.UserName

while doing development and form ticket generated for application
but after deployment its not working means Domain username not able to fetch.....


It should give pop up for username password dialog it should not give it should take Domain username which he use to login to system..............
Posted
Updated 20-Jan-16 3:38am
v3
Comments
Richard Deeming 20-Jan-16 9:48am    
If you want to use Windows authentication, then why have you configured your application to use Forms authentication?
Member-515487 20-Jan-16 10:00am    
but issues same i change to windows auth but it gives pop up
F-ES Sitecore 20-Jan-16 10:03am    
If you get the pop-up it means you're using Basic Authentication.
Member-515487 20-Jan-16 10:19am    
no in iis auto i set windows but it gives pop up when i am accessing from client pc

1 solution

Firstly, if you want to use Windows authentication, you need to configure your site to use Windows authentication, not Forms authentication.

Secondly, if you want the client to silently authenticate to your site, without prompting the user for a username and password, then the client needs to be a member of the same Active Directory domain as the server, and the site needs to be in the client's "Local Intranet" zone.

NB: Adding the site to the "Local Intranet" zone in the Internet Explorer settings will affect Internet Explorer, Edge, and Chrome. To get the same result in Firefox, you'll need to modify the configuration:
Enabling NTLM Authentication (Single Sign-On) in Firefox[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900