Using Windows Authentication to read username/password

I am trying to configure Single Sign-On so the user does not need to log onto our second website, since we are trying to make it look like its part of one big site. So I hope to use Windows Authentication but need to read the username and password. I would use that username to populate the username field on the login screen for our primary website and to auto login the user into the second website.

Please show what I need to configure for an ASP.NET website to read the Windows Login?

Thanks,
newbieweb
newbiewebSr. Software EngineerAsked:
Who is Participating?
 
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
Are both sites using Windows Authentication? If they are you shouldn't need to pass anything as they will both use the credentials of the user accessing the site.
0
 
newbiewebSr. Software EngineerAuthor Commented:
No, the main site uses Forms Authentication and the second uses no Authentication. I need to get the code needed to use Windows Authentication.
0
 
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
Well you can forward the username to the other site easily enough, but you can't forward the password because it isn't available to you. Windows stores passwords as a hash value, so you would still need the user to enter their password in order to manually validate it against AD.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
newbiewebSr. Software EngineerAuthor Commented:
But with Windows Authentication, am I prevented from having users log into my website from anoother person's system? If so, then Windows Authentication will not work for me.

0
 
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
Not if they are a valid domain user. If you try to access a site using Windows Authentication from a machine that isn't on the domain then they will be prompted with a standard windows login box prompting them to enter their windows credentials.
0
 
newbiewebSr. Software EngineerAuthor Commented:
We are all hooked into the one domain, since this is an internal website. Will they still see a standard Windows login box?
0
 
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
If you use Windows Authentication for the site and the user is attempting to access the site from a machine that is not on the domain then yes. Anybody who accesses the site from within the domain should get logged on automatically, without any prompting.
0
 
newbiewebSr. Software EngineerAuthor Commented:
Thanks.
0
All Courses

From novice to tech pro — start learning today.