473,799 Members | 3,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing credentials to webpage?

Hi

I am trying to pass a credentials object to a webpage programmaticall y.
I have a winApp (C#) that I want to be able to open a webpage (by starting
IE), but the credentials required by IIS serving this webpage should be sent
along automatically. This to prevent the user from being forced to login to
the site.

It should be something like LOGONUSER from the User32.dll native API, but
just to a webpage...
Any good and creative ideas as how to do that..???
/Ole

Nov 16 '05 #1
3 5830
Could you just pass the details along via the query string?

On Tue, 24 Aug 2004 10:09:00 +0200, Ole Hanson <ol********@ole .ole> wrote:
Hi

I am trying to pass a credentials object to a webpage programmaticall y.
I have a winApp (C#) that I want to be able to open a webpage (by
starting
IE), but the credentials required by IIS serving this webpage should be
sent
along automatically. This to prevent the user from being forced to login
to
the site.

It should be something like LOGONUSER from the User32.dll native API, but
just to a webpage...
Any good and creative ideas as how to do that..???
/Ole


--
Mark Harris
Head Developer
GameHost CP
Nov 16 '05 #2
No - that would expose the username/password to the user.
I want it "hidden" in such a way that access to this help-webpage is
protected by credentials, but these credentials are delivered by the WinApp.

To the user - this is transparent; he will just see an IE opening a webpage.

So how do I pass along the credentials required by the site? And opening IE
at the same time??

/Thanks

"Mark Harris" <ma**@gamehostc p.com> wrote in message
news:op******** ******@mark.net work.dvmesh.com ...
Could you just pass the details along via the query string?

On Tue, 24 Aug 2004 10:09:00 +0200, Ole Hanson <ol********@ole .ole> wrote:
Hi

I am trying to pass a credentials object to a webpage programmaticall y.
I have a winApp (C#) that I want to be able to open a webpage (by
starting
IE), but the credentials required by IIS serving this webpage should be
sent
along automatically. This to prevent the user from being forced to login
to
the site.

It should be something like LOGONUSER from the User32.dll native API, but
just to a webpage...
Any good and creative ideas as how to do that..???
/Ole


--
Mark Harris
Head Developer
GameHost CP

Nov 16 '05 #3
Hi,

Can you use windows auth? If so all you have to do is select windows auth
in the web app and it will run as the logged user.
If not you will have to pass the auth token somehow to the web app, maybe
using https and POST the login/password the user used to enter your app.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Ole Hanson" <ol********@ole .ole> wrote in message
news:OS******** *****@TK2MSFTNG P10.phx.gbl...
Hi

I am trying to pass a credentials object to a webpage programmaticall y.
I have a winApp (C#) that I want to be able to open a webpage (by starting
IE), but the credentials required by IIS serving this webpage should be sent along automatically. This to prevent the user from being forced to login to the site.

It should be something like LOGONUSER from the User32.dll native API, but
just to a webpage...
Any good and creative ideas as how to do that..???
/Ole

Nov 16 '05 #4

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

Similar topics

2
7523
by: Angelo Vargheese | last post by:
Hi, I am trying to retrieve XML created by ASP pages on different servers and display them on a single ASP.Net page. I was planning to use the XMLDocument and XMLResolver objects like below: xmlResolver.Credentials = CredentialCache.DefaultCredentials xmlDoc = New XmlDocument xmlDoc.XmlResolver = xmlResolver
3
2264
by: Das | last post by:
Hi all, I'm writig an application that sends an http request to java servlet file. I have to pass an xml file to the servlet. How should I pass xml file to the file. When I try to access the url directly it shows me Forbidden You do not have permission to access /RequestListenerServlet on this server.
7
4872
by: Steve Drake | last post by:
All, I am doing a WEBDAV request and I want to pass the users Credentials to the webdav server, eg some code like : Request.Credentials = CredentialCache.DefaultCredentials; This does not work, as I get AUTH FAIL, but if I pass the user name and password by using :
7
2621
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...
1
1710
by: Steve Drake | last post by:
All, I have a WEBPAGE that needs to pass the current credentials to a .NET remoted object so this can pass the credentials to a SOAP WEBSERVICE (All written in C#) But I cannot see how I pass credentials to the remoted object, any ideas? If there was no remote layer then I could just do :
1
5260
by: jadher | last post by:
I try to access an asp page in a machine that has windows integrated authentication turned on. I use System.Net.Networkcredentials as well as System.Net.Webrequest and Webresponse. I receive a response but when I try to use Response.Redirect(), a popup windows appears asking me for user, password, domain. Is there a way to pass the credentials to the Reponse.Redirect function so I
3
4912
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.
2
1588
by: Jay Balapa | last post by:
Hello, Win Forms app is able to connect to my webservice passing credentials as follows- myService.Credentials=System.Net.CredentialsCache.DefaultCredentials; Compact Framework does not have a CredentialsCache class. Is there an alternate way of passing default credentials?
4
1947
by: Kris Kennaway | last post by:
I want to make use of UNIX credential passing on a local domain socket to verify the identity of a user connecting to a privileged service. However it looks like the socket module doesn't implement sendmsg/recvmsg wrappers, and I can't find another module that does this either. Is there something I have missed? Kris
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
jinu1996
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...
1
10214
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,...
1
7561
isladogs
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...
0
6803
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();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
bsmnconsultancy
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...

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.