Solved

Windows Authentication

Posted on 2014-04-15
4
193 Views
Last Modified: 2014-04-15
I am changing my app to have Windows authentication instead of forms.

I get the jist of the authentication method, but as part of my app I ask the user to re-enter their username and password to confirm they have understood something.

How do I get the authentication window to appear if the user is already logged in? and if they fail to authenticate I do not want the user logged out, just prompted to re-enter.

Thanks
0
Comment
Question by:Soluga
  • 2
  • 2
4 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 40001580
If I understand you correctly then you can't do what you with the standard authentication mechanism. Authentication controls access to the site/directories themselves, it doesn't provide authentication for specific business processes within your application.

You can on the other hand present the user with a dialog of your own and verify the credentials provided against AD using the PrincipalContext object in the System.DirectoryServices.AccountManagement namespace.
0
 
LVL 1

Author Comment

by:Soluga
ID: 40001661
Do I have to have AD installed to use Windows authentication?
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 40001676
You need to have a domain to authenticate users against. Windows Authentication means passing the Windows identity of the user accessing the site, which is then authenticated against the domain users list.
0
 
LVL 1

Author Comment

by:Soluga
ID: 40001735
I have webserver 2008 R2.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to create an MVC5, Razor Widget 2 26
Access RV042 GUI / Browser Issues 25 44
function parameter and using that as array 15 22
2 separate CSS animations 2 16
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question