I try to access an asp page in a machine that has windows integrated
authentication turned on.
I use System.Net.Netw orkcredentials as well as System.Net.Webr equest and
Webresponse.
I receive a response but when I try to use Response.Redire ct(), a popup
windows appears asking me for user, password, domain.
Is there a way to pass the credentials to the Reponse.Redirec t function so I
do not get prompted for credentials again?
This is the code i use:
Dim objCredentials As New System.Net.Netw orkCredential
(strUsername, strPassword, strDomain)
Dim objCache As New System.Net.Cred entialCache
objCache.Add(Ne w Uri(strURL), "Negotiate" , objCredentials)
Dim objWebRequest As System.Net.WebR equest
Dim objWebResponse As System.Net.WebR esponse
try
objWebRequest = System.Net.WebR equest.Create(s trURL)
objWebRequest.C redentials = objCache
objWebResponse = objWebRequest.G etResponse()
'I get prompted here
Response.Redire ct(strURL, False)
Response.Close( )
catch ex as exception
end try
Thank you very much 1 5256
No there is not. When you use the WebRequest object on the server, the
server is making the request, passing the network credentials. When you use
Response.Redire ct, you are instructing the remote client, to make another
request to the server address you passed it, strURL.
The remote user then makes the request to strURL; the browser will only send
the credentials on the machine the remote user is using. I know of no
workaround.
HTH,
bill
"jadher" <ja****@excite. com> wrote in message
news:uZ******** ******@TK2MSFTN GP11.phx.gbl... I try to access an asp page in a machine that has windows integrated authentication turned on.
I use System.Net.Netw orkcredentials as well as System.Net.Webr equest and Webresponse.
I receive a response but when I try to use Response.Redire ct(), a popup windows appears asking me for user, password, domain.
Is there a way to pass the credentials to the Reponse.Redirec t function so
I do not get prompted for credentials again?
This is the code i use: Dim objCredentials As New System.Net.Netw orkCredential (strUsername, strPassword, strDomain) Dim objCache As New System.Net.Cred entialCache objCache.Add(Ne w Uri(strURL), "Negotiate" , objCredentials) Dim objWebRequest As System.Net.WebR equest Dim objWebResponse As System.Net.WebR esponse try objWebRequest = System.Net.WebR equest.Create(s trURL) objWebRequest.C redentials = objCache objWebResponse = objWebRequest.G etResponse()
'I get prompted here Response.Redire ct(strURL, False) Response.Close( ) catch ex as exception end try
Thank you very much
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kris van der Mast |
last post by:
Hi,
I've created a little site for my sports club. In the root folder there are
pages that are viewable by every anonymous user but at a certain subfolder
my administration pages should be protected by forms authentication.
When I create forms authentication at root level it works but when I move my
code up to the subfolder I get this error:
Server Error in '/TestProjects/FormsAuthenticationTestingArea' Application.
|
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 same time so that they don't have to
login again.
Specifically, I have two webservers in the same domain. When I have a user
go to Webserver A (which uses basic authentication) I programmatically
create either a user credential or impersonate...
|
by: Matt F |
last post by:
Hi all
I was hoping some one could clear up an ASP.Net security question I
have.
I am writing an ASP.NET application that connects to SQL Server. The
security setup (connection string and IIS) will vary depending on the
client who installs it. Some clients will undoubtedly wish to have IIS
and SQL Server on separate machines, with Anonymous authentication in
IIS, and a SQL Server connection string using Windows integrated
|
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 to login again.
Any help?
|
by: cdlipfert |
last post by:
Our intranet is running under windows integrated security. We have
domain users that want to access our intranet site via ssl vpn. SSL
VPN can not authenticate against services that run under windows
integrated security. In order to get around this issue it seems that we
would need to create a login page on a separate site that runs under
anonymous security. Then pass the users credentials to the site
running under integrated security. ...
| |
by: GRB |
last post by:
My webiste has integrated windows authentication. I need to pass a clients
credentials (username, password) to my site without the login pop up.
I send the client to an anonymous page, get an encrypted cookie and read it
to get the credentials. Then redirect the client to my web site.
How can I pass the credentials to IIS and avoid the login pop up?
Any help or related web sites is appreciated.
|
by: hulinning |
last post by:
Hi,
I create my Webservice in 2003 VS and test in Windows 2000 and Windows XP
Pro without any problem. When I deploy it over Windows 2003 server, It fails
to connect to the WS. I got Anonymous access check, and integerated Windows
authentication check.
My client, WinCE 4.2 device, still cannot access the web service. I got a
WebException return to WinCE.
The same setting is always work in Windows 2000/XP Pro.
|
by: mbrand |
last post by:
When trying to connect to my web service from a client application, the
System.Net.CredentialCache.DefaultCredentials doesn't authenticate
properly.
I can see in the event viewer on the server (windows server 2003) that
my domain/username are getting passed properly but it gives a 529
error. If I hard code in my credentials using:
Service.Credentials = new System.Net.NetworkCredential("Username",
"Password", "Domain")
it authenticates...
|
by: Jesper Lund Stocholm |
last post by:
I have created a WCF-service running on IIS. The virtual directory has
anonymous access disabled and requires integrated windows authentication.
The proxy to the service is auto-generated using Visual Studio 2008's
"Add Service reference".
My problem is that when I try to execute a method on the service, I get
the following exception:
The HTTP request is unauthorized with client authentication scheme
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |