473,804 Members | 3,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing and using Credentials in a web service.

Am I to assume that if I have a windows client using DotNet and VBA
respectively that the way to pass the default credentials is:

DotNET: ws.Credentials = System.Net.Cred entialCache.Def aultCredentials

VBA: ws.ConnectorPro perty("ProxySer ver") = "<CURRENT_USER> "

If the above is true how do I then use the credentials in a webservice. I
need to make a request to another server onbehalf of the users making the
request. I have set the following in my web.config

<authenticati on mode="Windows" />
<identity impersonate="tr ue" />

How can I get the credentials in the web service of the current user?

Thanks,
Dan
Nov 23 '05 #1
0 1505

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

Similar topics

7
2622
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...
4
2025
by: Dan Higman | last post by:
I'm sure this is easy and I'll be embarrassed when I see the answer, but I just can't figure this one out. Using .Net/ASP 1.1 on a server using integrated authentication-- I have a web page (.aspx) that will collect some data from the user, call a web service to get additional data, and then merge and format the data back to the user's browser. But I want the web service to authenticate with the user's credentials, not the credentials of...
1
2023
by: dei1c3 | last post by:
I have a website that uses ASP.NET 2.0 Cookie-less Forms Authentication. Once authenticated, the user has access to a number of pages, most of which call one or more web methods on a web service I have also created. The problem I am having is that I am not sure what credentials to send the web service that it can use to authorize the user by role. For instance, I have some web methods that are only intended to be called by a user who has...
2
11434
by: rcp | last post by:
Hi all, I've read all posts from all existing threads and none of them worked to solve my problem, although its exactly the same. I'll try to explain my case and see if a kind soul could help me out: I've a win32 service in C# on a client machine A, which accesses a WS (C#) on a server machine B (hosted on an IIS) Case 1: If I try to add the WSDL for the WS through VS2005, the 'Discovery
3
13807
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 service run in an application pool which runs under a domain user, this domain user has permissions of accessing database and the connection to database is trusted connection. All these work well. The web application will be used in internet (not...
1
23212
by: MuZZy | last post by:
Hi, If I connect to a WCF service using ChannelFactory: IService1 service1 = ChannelFactory<IService1>.CreateChannel(tcpBinding, endpointAddress); How do i pass client credentials (e.g username, password)? All examples i could find use generated proxy and class is inherited from ClientBase<which has ClientCredentials property, but what do i do
0
1980
by: tkarthi06 | last post by:
Hi, Can any one please tell how to pass Web Services Credentials(Web Services Username and Password) using WCF. Inorder to Communicate with Web Services i have to provide username and password of the web services.
0
2870
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
0
1891
by: Jesper Lund Stocholm | last post by:
I have the following requirements: a. Have a WCF-service hosted on IIS (6.0) b. Pass user's AD-credentials to the WCF-service c. NOT use SSL/HTTPS So in IIS I have disabled anonymous access and specified "integrated Windows authentication". I have tried to use wsHttpBinding, but as far as I can figure out,
0
9706
marktang
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...
0
10571
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
10326
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...
0
10075
tracyyun
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...
1
7615
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
6851
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
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.