473,385 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Asp .NET applications + windows credentials

Hi,

Questions
1. Has anyone encountered a situation to create an application using
"windows authentication" only and the first call to the web page caused the
Windows authentication dialog box to pop up, log in and then navigate
around.
2. Set a timeout value, so that the "Windows credentials" are cleared and
3. when the page is refreshed or anything, the window pops up again.

Any suggestions/links/code is really appreciated,
Thanks,
Stephen
Nov 19 '05 #1
2 1210
Hi Stephen,

This is a bit of a tricky requirement. The way you get the Windows
Autheitication dialog box to come up is by setting IIS authentication. IIS
has 3 types of authentication: Anonymous (most common), Basic (User Name and
Password), and Windows Integrated Authentications (Kerberos). You would need
to at least disallow anonymous access to the web site via IIS.

The second part of this scenario is the ASP.Net application's role in this.
When using a typical configuration, the user only has to log in once per
Session, and the credentials are cached on the browser, so the user doesn't
have to keep logging in with each Request. But you want to cause the
Authentication dialog box to come up even if they Refresh the page. I'm not
sure how that would be done, but I can point you to the .Net SDK articles
you would need to read in order to determine if and how that might be done:

http://msdn.microsoft.com/library/de...haspdotnet.asp
http://msdn.microsoft.com/library/de...entication.asp
http://msdn.microsoft.com/library/de...entication.asp
http://msdn.microsoft.com/library/de...entication.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
I'd rather be a hammer than a nail.

"Stephen Noronha" <st********@hotmail.com> wrote in message
news:en***************@TK2MSFTNGP14.phx.gbl...
Hi,

Questions
1. Has anyone encountered a situation to create an application using
"windows authentication" only and the first call to the web page caused
the
Windows authentication dialog box to pop up, log in and then navigate
around.
2. Set a timeout value, so that the "Windows credentials" are cleared and
3. when the page is refreshed or anything, the window pops up again.

Any suggestions/links/code is really appreciated,
Thanks,
Stephen

Nov 19 '05 #2
Thanks Kevin,
will read the articles,
Stephen

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:Ot*************@TK2MSFTNGP12.phx.gbl...
Hi Stephen,

This is a bit of a tricky requirement. The way you get the Windows
Autheitication dialog box to come up is by setting IIS authentication. IIS
has 3 types of authentication: Anonymous (most common), Basic (User Name and Password), and Windows Integrated Authentications (Kerberos). You would need to at least disallow anonymous access to the web site via IIS.

The second part of this scenario is the ASP.Net application's role in this. When using a typical configuration, the user only has to log in once per
Session, and the credentials are cached on the browser, so the user doesn't have to keep logging in with each Request. But you want to cause the
Authentication dialog box to come up even if they Refresh the page. I'm not sure how that would be done, but I can point you to the .Net SDK articles
you would need to read in order to determine if and how that might be done:
http://msdn.microsoft.com/library/de...haspdotnet.asp http://msdn.microsoft.com/library/de...entication.asp http://msdn.microsoft.com/library/de...entication.asp http://msdn.microsoft.com/library/de...entication.asp
--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
I'd rather be a hammer than a nail.

"Stephen Noronha" <st********@hotmail.com> wrote in message
news:en***************@TK2MSFTNGP14.phx.gbl...
Hi,

Questions
1. Has anyone encountered a situation to create an application using
"windows authentication" only and the first call to the web page caused
the
Windows authentication dialog box to pop up, log in and then navigate
around.
2. Set a timeout value, so that the "Windows credentials" are cleared and 3. when the page is refreshed or anything, the window pops up again.

Any suggestions/links/code is really appreciated,
Thanks,
Stephen


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Pete Wittig | last post by:
Hello, I am wondering if it is possible to create a networked application with C# that is seen as a windows user. For example, if Bob logged onto windows and then started the application, any...
7
by: Wade Wegner | last post by:
Hello, I have been desperately trying to programmatically authenticate a windows user, create their credentials, and then redirect them to a different server while passing the credentials at the...
3
by: Patrick.O.Ige | last post by:
Hi folks, How can i pass credentials to windows integrated authentication. I want to use my credentials from windows authentication and pass it on to different asp.net and asp pages without having...
6
by: Kevin Yu | last post by:
is it possible to for user to click a logout button to logout and when the user want to get into the system again, the user have to login again? Kevin
0
by: Nabani Silva | last post by:
Hi, hope someone could help I need to share session state (and contents) through differente web applications. I'm trying to get it done by using StateServer session state, below I paste code...
3
by: tshad | last post by:
I have my windows authentication on our intranet set up as: <authentication mode="Windows"/> This works for 15 machines at work fine. Doesn't ask you to logon. It uses the logon credentials...
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
6
by: =?Utf-8?B?UGFyYWcgR2Fpa3dhZA==?= | last post by:
Hi All, We have a requirement where we have to develop a custom Login Page which will accept user's NT credentials ( Username , password, domain name). This then needs to be passed to a website...
3
by: Pouria | last post by:
Hi, Does anyone have any experience with single sign on for .Net windows applications or windows services? So the idea is to be able to use the user credentials from logging into windows to...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.