473,396 Members | 1,907 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,396 software developers and data experts.

flowing identity from UI-tier to DB-tier

Hi,

I would like to flow the identity obtained in the UI (ASP.NET, Kerberos) to
my datatier which is a remote Sharepoint installation. The Sharepoint
installation is only used as documentstore, and I access it using the
built-in webservices.

Therefore, I need an object implementing the ICredentials interface, as this
is what the webservices requires.

Question: How do I go from the IPrincipal (System.Web.Page.User) ->
ICredentials object?

Thanks!
Nov 16 '05 #1
1 2065
Can you provide some code and better description of what you're doing?

It could be that your problem is as simple as adding the following line of
code to your code behind after instantiating the proxy for your webservice
but before calling any methods on your webservice:

myWebServiceProxyObject.Credentials =
System.Net.CredentialCache.DefaultCredentials;

Of course, you need to make sure you add <identity impersonate="true" /> to
your web.config file in the system.web section, and make sure that you turn
off anonymous access to your website.

HTH

DalePres
MCAD, MCDBA, MCSE
"Ole Hanson" <no@spam.com> wrote in message
news:OC****************@TK2MSFTNGP09.phx.gbl...
Hi,

I would like to flow the identity obtained in the UI (ASP.NET, Kerberos)
to my datatier which is a remote Sharepoint installation. The Sharepoint
installation is only used as documentstore, and I access it using the
built-in webservices.

Therefore, I need an object implementing the ICredentials interface, as
this is what the webservices requires.

Question: How do I go from the IPrincipal (System.Web.Page.User) ->
ICredentials object?

Thanks!

Nov 16 '05 #2

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

Similar topics

3
by: gallery | last post by:
This has stumped me. The text is not flowing properly to the left of an image I have floated to the right in IE. Seems fine in Firefox. I'm on a WinXP ... ...
0
by: DougD | last post by:
Hello, I have been hunting for a while on this... I need to change the process identity for my asp.net application. I'm familiar with changing the processModel node in machine.config, but it...
7
by: Rob Meade | last post by:
Hi all, Just spent an hour and a half trying to get something to work when we realised we had the same problem over a year ago... I have an ASP page which calls a stored procedure, all the...
14
by: Eric Lindsay | last post by:
I've seen a page using display, and especially display table that did some neat things with boxes, but basically it only worked with Mozilla browsers. Fell over fairly badly with Opera and Safari...
8
by: BigJohnson | last post by:
We're using ASPUpload as a tool to upload files to our server and save the details to SQLServer. However, I have an application where I need to return the pkID of the just saved file. I'm assuming...
26
by: mikharakiri_nospaum | last post by:
Is there a way to tell one window from another? A quick look into wndow object properties revealed nothing obvious. I want to keep track of window object identity in a hidden input widget, so that...
0
by: =?Utf-8?B?UGF1bCBCdXp6YSwgb2xkc3RlciB1c2luZyBuZXcg | last post by:
I'm trying to retrieve the @@identity value of the just-inserted record using a FormView control on an .aspx page. Here's what I have tried..... --change in-line Insert in the SqlDataSource from...
13
by: PinkBishop | last post by:
I am using VS 2005 with a formview control trying to insert a record to my access db. The data is submitted to the main table no problem, but I need to carry the catID to the bridge table...
14
by: greentiger1 | last post by:
I'm moderately experienced in CSS. I am currently working on a new version of my site, built from the ground up, but the dynamic portion, loaded with a PHP include into the 'chest' DIV is being...
1
by: Pipo Dyer | last post by:
Hello Everybody, I am Using @@IDENTITY from MS Access (YES-It is possible) using SqlDataSource -NO STORE PROC- in ASP.NET {VB CODE} to retrieve the ID of a inserted record. Please keep in mind I...
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: 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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
agi2029
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,...

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.